diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f5b6541..c9482462 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +# V2.6.2 + +## Enhancements: + +- Prints out the hashes during check out/merging process + # V2.6.1 ## Enhancements: diff --git a/dist/index.js b/dist/index.js index 465034f7..ccf13f69 100755 --- a/dist/index.js +++ b/dist/index.js @@ -1,2 +1,2 @@ #!/usr/bin/env node -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:{}};var o=true;try{e[t].call(n.exports,n,n.exports,__webpack_require__);o=false}finally{if(o)delete r[t]}n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(109)}return startup()}([,function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const c=r(357);const a=i(r(129));const u=i(r(622));const l=r(669);const f=i(r(672));const p=l.promisify(a.exec);const d=l.promisify(a.execFile);function cp(e,t,r={}){return s(this,void 0,void 0,function*(){const{force:n,recursive:o,copySourceDirectory:i}=readCopyOptions(r);const s=(yield f.exists(t))?yield f.stat(t):null;if(s&&s.isFile()&&!n){return}const c=s&&s.isDirectory()&&i?u.join(t,u.basename(e)):t;if(!(yield f.exists(e))){throw new Error(`no such file or directory: ${e}`)}const a=yield f.stat(e);if(a.isDirectory()){if(!o){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(u.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return s(this,void 0,void 0,function*(){if(yield f.exists(t)){let n=true;if(yield f.isDirectory(t)){t=u.join(t,u.basename(e));n=yield f.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(u.dirname(t));yield f.rename(e,t)})}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,function*(){if(f.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=f.getCmdPath();if(yield f.isDirectory(e,true)){yield p(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield p(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield f.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield f.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield d(`rm`,[`-rf`,`${e}`])}else{yield f.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,function*(){c.ok(e,"a path argument must be provided");yield f.mkdir(e,{recursive:true})})}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(f.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""})}t.which=which;function findInPath(e){return s(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(f.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(u.delimiter)){if(e){t.push(e)}}}if(f.isRooted(e)){const r=yield f.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(u.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(u.delimiter)){if(e){r.push(e)}}}const n=[];for(const o of r){const r=yield f.tryGetExecutablePath(u.join(o,e),t);if(r){n.push(r)}}return n})}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return s(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const o=yield f.readdir(e);for(const i of o){const o=`${e}/${i}`;const s=`${t}/${i}`;const c=yield f.lstat(o);if(c.isDirectory()){yield cpDirRecursive(o,s,r,n)}else{yield copyFile(o,s,n)}}yield f.chmod(t,(yield f.stat(e)).mode)})}function copyFile(e,t,r){return s(this,void 0,void 0,function*(){if((yield f.lstat(e)).isSymbolicLink()){try{yield f.lstat(t);yield f.unlink(t)}catch(e){if(e.code==="EPERM"){yield f.chmod(t,"0666");yield f.unlink(t)}}const r=yield f.readlink(e);yield f.symlink(r,t,f.IS_WINDOWS?"junction":null)}else if(!(yield f.exists(t))||r){yield f.copyFile(e,t)}})}},function(e,t,r){"use strict";const n=r(87);const o=r(118);const i=r(494);const s=(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?o(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?i(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=s},,,,,,function(e,t,r){const{logger:n,ClientError:o}=r(79);const i=/^https:\/\/github.com\/([^/]+)\/([^/]+)\/(pull|tree)\/([^ ]+)$/;const s=/^(https?:\/\/.*\/)([^/]+)\/([^/]+)\/(pull|tree)\/([^ ]+)$/;function prepareEnv(e,t,r){e["GITHUB_SERVER_URL"]=t.match(s)[1];e["GITHUB_ACTION"]=undefined;e["GITHUB_ACTOR"]=r.pull_request.head.user.login;e["GITHUB_HEAD_REF"]=r.pull_request.head.ref;e["GITHUB_BASE_REF"]=r.pull_request.base.ref;e["GITHUB_REPOSITORY"]=r.pull_request.base.repo.full_name;e["GITHUB_REF"]=r.ref}function createGithubInformationObject(e,t){n.debug("eventData",e);return{sourceGroup:e.pull_request.head.repo.full_name.split("/")[0],author:e.pull_request.head.user.login,sourceRepository:e.repository?e.repository.name:e.pull_request.repo?e.pull_request.repo.full_name:t["GITHUB_REPOSITORY"]}}async function getEvent(e,t){let r;const s=t.match(i);if(s&&s[3]==="pull"){n.debug("Getting PR data...",t);const{data:o}=await e.pulls.get({owner:s[1],repo:s[2],pull_number:s[4]});r={action:"opened",ref:`refs/pull/${s[4]}/merge`,type:"pull_request",pull_request:o}}else if(s&&s[3]==="tree"){r={type:"tree",ref:`refs/heads/${s[4]}`,repository:{name:s[2],owner:{name:s[1]}}}}else{throw new o(`invalid URL: ${t}`)}return r}e.exports={getEvent:getEvent,createGithubInformationObject:createGithubInformationObject,prepareEnv:prepareEnv}},function(e,t,r){"use strict";var n=r(457);var o=r(685);function deprecated(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=r(945);e.exports.Schema=r(43);e.exports.FAILSAFE_SCHEMA=r(581);e.exports.JSON_SCHEMA=r(23);e.exports.CORE_SCHEMA=r(611);e.exports.DEFAULT_SAFE_SCHEMA=r(723);e.exports.DEFAULT_FULL_SCHEMA=r(910);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.safeLoad=n.safeLoad;e.exports.safeLoadAll=n.safeLoadAll;e.exports.dump=o.dump;e.exports.safeDump=o.safeDump;e.exports.YAMLException=r(556);e.exports.MINIMAL_SCHEMA=r(581);e.exports.SAFE_SCHEMA=r(723);e.exports.DEFAULT_SCHEMA=r(910);e.exports.scan=deprecated("scan");e.exports.parse=deprecated("parse");e.exports.compose=deprecated("compose");e.exports.addConstructor=deprecated("addConstructor")},,function(e,t,r){const{logger:n,annotationer:o}=r(79);const{execute:i}=r(81);const{treatCommand:s}=r(557);const{getDir:c}=r(330);const a=r(470);async function executeBuild(e,t,r,o={}){const i=t.findIndex(e=>e.project===r);if(i<0){throw new Error(`The chain ${t.map(e=>e.project)} does not contain the project triggering the job ${r}`)}for await(const[r,s]of t.entries()){if(s.build&&s.build.skip){n.info(`Execution skip for ${s.project}. No command will be executed.`)}else{const t=re):[t]){if(!n.skipStartGroup){a.startGroup(`[${r}]. Command: '${c}' in dir ${e}`)}const t=s(c,n);try{await i(e,t)}catch(e){o.error(`[${r}] [Execution ERROR]`,t);throw new Error(`[${r}] error executing command '${t}'`)}o.notice(`[${r}] [Execution OK]`,t);if(!n.skipStartGroup){a.endGroup()}}}}e.exports={executeBuild:executeBuild,executeBuildSpecificCommand:executeBuildSpecificCommand,executeBuildCommands:executeBuildCommands,getCommand:getCommand}},function(e,t,r){var n=r(363);var o=r(510);var i=r(763);var s=Function.bind;var c=s.bind(s);function bindApi(e,t,r){var n=c(i,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach(function(n){var i=r?[t,n,r]:[t,n];e[n]=e.api[n]=c(o,null).apply(null,i)})}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 a=false;function Hook(){if(!a){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');a=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},,,function(e,t,r){const{logger:n}=r(79);const{prepareEnv:o,createGithubInformationObject:i,getEvent:s}=r(8);const{start:c}=r(754);const{createCommonConfig:a}=r(981);async function execute(e,t,r,o,s,u={}){const l=i(o,r);const f=await a(l,s,r);const p={token:e,octokit:t,config:f};n.debug("build-chain-pull-single.js. githubInformation",l);n.debug("build-chain-pull-single.js. config",f);await c(p,u)}async function executeFromEvent(e,t,r,n){await execute(e,t,r,n,undefined,{isArchiveArtifacts:true})}async function executeLocally(e,t,r,i,c,a={}){n.info(`Executing pull request flow for ${c} in ${i}`);a.isArchiveArtifacts=false;const u=await s(t,c);o(r,c,u);await execute(e,t,r,u,i,a)}e.exports={executeLocally:executeLocally,executeFromEvent:executeFromEvent}},function(e){e.exports=require("tls")},,function(module){module.exports=eval("require")("encoding")},,function(e,t,r){"use strict";const n=r(129);const o=r(568);const i=r(881);function spawn(e,t,r){const s=o(e,t,r);const c=n.spawn(s.command,s.args,s.options);i.hookChildProcess(c,s);return c}function spawnSync(e,t,r){const s=o(e,t,r);const c=n.spawnSync(s.command,s.args,s.options);c.error=c.error||i.verifyENOENTSync(c.status,s);return c}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=o;e.exports._enoent=i},,function(e,t,r){const n=r(605);const o=r(211);function checkUrlExist(e,t=undefined){const r=t?{headers:{Authorization:`token ${t}`}}:{};return new Promise(t=>{(e.startsWith("https://")?o:n).get(e,r,e=>{t(200===e.statusCode)})})}e.exports={checkUrlExist:checkUrlExist}},function(e,t,r){"use strict";var n=r(43);e.exports=new n({include:[r(581)],implicit:[r(809),r(228),r(44),r(417)]})},,,,,,,,,,,,,,,,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"})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},,,function(e,t,r){"use strict";var n=r(740);var o=r(556);var i=r(945);function compileList(e,t,r){var n=[];e.include.forEach(function(e){r=compileList(e,t,r)});e[t].forEach(function(e){r.forEach(function(t,r){if(t.tag===e.tag&&t.kind===e.kind){n.push(r)}});r.push(e)});return r.filter(function(e,t){return n.indexOf(t)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function collectType(t){e[t.kind][t.tag]=e["fallback"][t.tag]=t}for(t=0,r=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},,,,,function(e,t,r){var n=r(293);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}},,,,,function(e,t,r){"use strict";const n=r(869);const o=r(622);const i=r(159);const s=i("10.12.0");const c=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(o.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const a=e=>{const t={mode:511};if(typeof e==="number")e={mode:e};return{...t,...e}};const u=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};e.exports.makeDir=(async(e,t)=>{c(e);t=a(t);if(s){const r=o.resolve(e);return n.mkdir(r,{mode:t.mode,recursive:true})}const r=async e=>{try{await n.mkdir(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(o.dirname(e)===e){throw u(e)}if(t.message.includes("null bytes")){throw t}await r(o.dirname(e));return r(e)}try{const r=await n.stat(e);if(!r.isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return r(o.resolve(e))});e.exports.makeDirSync=((e,t)=>{c(e);t=a(t);if(s){const r=o.resolve(e);return n.mkdirSync(r,{mode:t.mode,recursive:true})}const r=e=>{try{n.mkdirSync(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(o.dirname(e)===e){throw u(e)}if(t.message.includes("null bytes")){throw t}r(o.dirname(e));return r(e)}try{if(!n.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return r(o.resolve(e))})},,,,,,,,,function(e,t,r){const n=r(747);const o=r(622);function log(e){console.log(`[dotenv][DEBUG] ${e}`)}const i="\n";const s=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/;const c=/\\n/g;const a=/\n|\r|\r\n/;function parse(e,t){const r=Boolean(t&&t.debug);const n={};e.toString().split(a).forEach(function(e,t){const o=e.match(s);if(o!=null){const e=o[1];let t=o[2]||"";const r=t.length-1;const s=t[0]==='"'&&t[r]==='"';const a=t[0]==="'"&&t[r]==="'";if(a||s){t=t.substring(1,r);if(s){t=t.replace(c,i)}}else{t=t.trim()}n[e]=t}else if(r){log(`did not match key and value when parsing line ${t+1}: ${e}`)}});return n}function config(e){let t=o.resolve(process.cwd(),".env");let r="utf8";let i=false;if(e){if(e.path!=null){t=e.path}if(e.encoding!=null){r=e.encoding}if(e.debug!=null){i=true}}try{const e=parse(n.readFileSync(t,{encoding:r}),{debug:i});Object.keys(e).forEach(function(t){if(!Object.prototype.hasOwnProperty.call(process.env,t)){process.env[t]=e[t]}else if(i){log(`"${t}" is already defined in \`process.env\` and will not be overwritten`)}});return{parsed:e}}catch(e){return{error:e}}}e.exports.config=config;e.exports.parse=parse},,,,,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 o=t.endpoint.merge(r,n);o.headers.authorization=withAuthorizationPrefix(e);return t(o)}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},,,,,,,,,,,function(e,t,r){const n=r(669);const{getAnnotationsPrefix:o}=r(933);const i=r(470);class ClientError extends Error{}class TimeoutError extends Error{}function log(e,t){const r=t.map(e=>typeof e==="object"?inspect(e):e);if(e){console.log.apply(console,[e,...r])}else{console.log.apply(console,r)}}const s={notice:(e,t)=>i.notice(t,{title:`${o()} ${e}`}),warning:(e,t)=>i.warning(t,{title:`${o()} ${e}`}),error:(e,t)=>i.error(t,{title:`${o()} ${e}`})};const c={level:"info",trace:(...e)=>{if(c.level==="trace"){log("[TRACE] ",e)}},debug:(...e)=>{if(c.isDebug()){log("[DEBUG] ",e)}},emptyLine:()=>log("",[]),info:(...e)=>log("[INFO] ",e),warn:(...e)=>log("[WARN] ",e),error:(...e)=>{if(e.length===1){if(e[0]instanceof Error){if(c.isDebug()){log(null,[e[0].stack||e[0]])}else{log("[ERROR] ",[e[0].message||e[0]])}}}else{log("[ERROR] ",e)}},isDebug:()=>c.level==="trace"||c.level==="debug"};function inspect(e){return n.inspect(e,false,null,true)}e.exports={ClientError:ClientError,TimeoutError:TimeoutError,annotationer:s,logger:c}},,function(e,t,r){const{logger:n}=r(79);const{executeCommand:o}=r(284);class ExitError extends Error{constructor(e,t){super(e);this.code=t}}async function execute(e,t){n.info(`Execute command '${t}' in dir '${e}'`);await o(e,t)}e.exports={ExitError:ExitError,execute:execute}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},,,,,function(e){e.exports=require("os")},,,,,,function(e,t,r){"use strict";var n=r(740);function Mark(e,t,r,n,o){this.name=e;this.buffer=t;this.position=r;this.line=n;this.column=o}Mark.prototype.getSnippet=function getSnippet(e,t){var r,o,i,s,c;if(!this.buffer)return null;e=e||4;t=t||75;r="";o=this.position;while(o>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1))===-1){o-=1;if(this.position-o>t/2-1){r=" ... ";o+=5;break}}i="";s=this.position;while(st/2-1){i=" ... ";s-=5;break}}c=this.buffer.slice(o,s);return n.repeat(" ",e)+r+c+i+"\n"+n.repeat(" ",e+this.position-o+r.length)+"^"};Mark.prototype.toString=function toString(e){var t,r="";if(this.name){r+='in "'+this.name+'" '}r+="at line "+(this.line+1)+", column "+(this.column+1);if(!e){t=this.getSnippet();if(t){r+=":\n"+t}}return r};e.exports=Mark},,function(e,t,r){"use strict";const n=r(598);const o=r(622);const i=r(640).copySync;const s=r(368).removeSync;const c=r(727).mkdirpSync;const a=r(425);function moveSync(e,t,r){r=r||{};const n=r.overwrite||r.clobber||false;const{srcStat:i}=a.checkPathsSync(e,t,"move");a.checkParentPathsSync(e,i,t,"move");c(o.dirname(t));return doRename(e,t,n)}function doRename(e,t,r){if(r){s(t);return rename(e,t,r)}if(n.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{n.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const n={overwrite:r,errorOnExist:true};i(e,t,n);return s(e)}e.exports=moveSync},,,,function(e,t,r){const{readDefinitionFile:n}=r(352);const{executeBuildCommands:o}=r(11);const i=r(470);async function execute(e,t={urlPlaceHolders:{},token:undefined}){const r=await n(e,t);if(r.pre){i.startGroup(`[PRE] Executing pre section for ${e}`);await o(process.cwd(),r.pre.split(/\r?\n/),"PRE",{skipStartGroup:true});i.endGroup()}}e.exports={execute:execute}},function(e,t,r){"use strict";var n=r(945);var o=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,r=e;for(t in r){if(o.call(r,t)){if(r[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},function(e,t,r){const{readDefinitionFile:n}=r(799);const{treatProject:o}=r(443);const{validateNode:i}=r(127);async function getTree(e,t={urlPlaceHolders:{},token:undefined}){const r=await n(e,t);return dependencyListToTree(r.dependencies,r)}async function getTreeForProject(e,t,r={urlPlaceHolders:{},token:undefined}){return lookForProject(await getTree(e,r),t)}function lookForProject(e,t){if(e&&e.length>0){const r=e.find(e=>t===e.project);return r?r:e.map(e=>lookForProject(e.children,t)).find(e=>e)}else{return undefined}}function dependencyListToTree(e,t){const r=e.reduce((e,t,r)=>{e[t.project]={index:r,node:undefined};t.children=[];t.parents=[];return e},{});return e.reduce((n,s)=>{i(s);r[s.project].node={...s,repo:{group:s.project.split("/")[0],name:s.project.split("/")[1]},...o(s.project,t)};if(s.dependencies&&s.dependencies.length>0){s.dependencies.forEach(t=>{if([null,undefined].includes(r[t.project])){const e=`The project ${t.project} does not exist on project list. Please review your project definition file`;console.error(e);throw new Error(e)}e[r[t.project].index].children.push({...r[s.project].node});s.parents.push({...r[t.project].node})})}else{n.push(r[s.project].node)}return n},[])}e.exports={getTree:getTree,getTreeForProject:getTreeForProject,dependencyListToTree:dependencyListToTree}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=i(r(747));const c=i(r(87));const a=r(82);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${a.toCommandValue(t)}${c.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},,,,,,,function(module,__unusedexports,__webpack_require__){const{ClientError:ClientError,logger:logger}=__webpack_require__(79);const{executeFromEvent:pullRequestEventFlow}=__webpack_require__(701);const{executeFromEvent:fdbEventFlow}=__webpack_require__(771);const{executeFromEvent:singleEventFlow}=__webpack_require__(15);const{executeFromEvent:branchEventFlow}=__webpack_require__(131);const{isPullRequestFlowType:isPullRequestFlowType,isFDFlowType:isFDFlowType,isSingleFlowType:isSingleFlowType,isBranchFlowType:isBranchFlowType,getFlowType:getFlowType,getLoggerLevel:getLoggerLevel}=__webpack_require__(933);const{createOctokitInstance:createOctokitInstance,getProcessEnvVariable:getProcessEnvVariable}=__webpack_require__(523);__webpack_require__(63).config();const fse=__webpack_require__(226);const{printLocalCommand:printLocalCommand}=__webpack_require__(320);async function getEventData(){let e;try{e=getProcessEnvVariable("GITHUB_EVENT_PATH")}catch(e){logger.error("Error trying to get event path from 'GITHUB_EVENT_PATH' environment variable. Are you sure you are executing this based on a github event?");throw e}const t=await fse.readFile(e,"utf8");return JSON.parse(t)}async function main(){const e=await getEventData();logger.level=getLoggerLevel();logger.debug(e);await printLocalCommand(e);const t=getProcessEnvVariable("GITHUB_TOKEN",false);const r=createOctokitInstance(t);if(isPullRequestFlowType()){await pullRequestEventFlow(t,r,process.env,e)}else if(isFDFlowType()){await fdbEventFlow(t,r,process.env,e)}else if(isSingleFlowType()){await singleEventFlow(t,r,process.env,e)}else if(isBranchFlowType()){await branchEventFlow(t,r,process.env)}else{throw new Error(`flow type input value '${getFlowType()}' is not supported. Please check documentation.`)}}if(require.main===require.cache[eval("__filename")]){main().catch(e=>{if(e instanceof ClientError){process.exitCode=2;logger.error(e)}else{process.exitCode=1;logger.error(e)}})}module.exports={main:main}},function(e,t,r){"use strict";const n=r(598);const o=r(622);const i=r(727).mkdirsSync;const s=r(916).utimesMillisSync;const c=r(425);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:n,destStat:o}=c.checkPathsSync(e,t,"copy");c.checkParentPathsSync(e,n,t,"copy");return handleFilterAndCopy(o,e,t,r)}function handleFilterAndCopy(e,t,r,s){if(s.filter&&!s.filter(t,r))return;const c=o.dirname(r);if(!n.existsSync(c))i(c);return startCopy(e,t,r,s)}function startCopy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;return getStats(e,t,r,n)}function getStats(e,t,r,o){const i=o.dereference?n.statSync:n.lstatSync;const s=i(t);if(s.isDirectory())return onDir(s,e,t,r,o);else if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return onFile(s,e,t,r,o);else if(s.isSymbolicLink())return onLink(e,t,r,o)}function onFile(e,t,r,n,o){if(!t)return copyFile(e,r,n,o);return mayCopyFile(e,r,n,o)}function mayCopyFile(e,t,r,o){if(o.overwrite){n.unlinkSync(r);return copyFile(e,t,r,o)}else if(o.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,o){n.copyFileSync(t,r);if(o.preserveTimestamps)handleTimestamps(e.mode,t,r);return setDestMode(r,e.mode)}function handleTimestamps(e,t,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(t,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return n.chmodSync(e,t)}function setDestTimestamps(e,t){const r=n.statSync(e);return s(t,r.atime,r.mtime)}function onDir(e,t,r,n,o){if(!t)return mkDirAndCopy(e.mode,r,n,o);if(t&&!t.isDirectory()){throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)}return copyDir(r,n,o)}function mkDirAndCopy(e,t,r,o){n.mkdirSync(r);copyDir(t,r,o);return setDestMode(r,e)}function copyDir(e,t,r){n.readdirSync(e).forEach(n=>copyDirItem(n,e,t,r))}function copyDirItem(e,t,r,n){const i=o.join(t,e);const s=o.join(r,e);const{destStat:a}=c.checkPathsSync(i,s,"copy");return startCopy(a,i,s,n)}function onLink(e,t,r,i){let s=n.readlinkSync(t);if(i.dereference){s=o.resolve(process.cwd(),s)}if(!e){return n.symlinkSync(s,r)}else{let e;try{e=n.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return n.symlinkSync(s,r);throw e}if(i.dereference){e=o.resolve(process.cwd(),e)}if(c.isSrcSubdir(s,e)){throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`)}if(n.statSync(r).isDirectory()&&c.isSrcSubdir(e,s)){throw new Error(`Cannot overwrite '${e}' with '${s}'.`)}return copyLink(s,r)}}function copyLink(e,t){n.unlinkSync(t);return n.symlinkSync(e,t)}e.exports=copySync},,function(e,t,r){const{logger:n}=r(79);function treat(e,t){if(t){n.info(`[REGEX COMMAND REPLACEMENT] Replacing command: '${e}' by expressions: '${t}'`);const r=t.reduce((e,t)=>treatReplaceEx(e,t),e);n.info(r===e?`[REGEX COMMAND REPLACEMENT] No replacement for ${e}`:`[REGEX COMMAND REPLACEMENT] Replaced to: '${r}'`);return r}else{return e}}function treatReplaceEx(e,t){const r=getReplacemenExpression(t);return e.replace(r.regEx,r.replace)}function getReplacemenExpression(e){const t=e.split("||");return{regEx:createRegex(t[0]),replace:t[1]}}function createRegex(e){const[,t,r]=e.split("/");return t?r?new RegExp(t,r):new RegExp(t):new RegExp(e)}e.exports={treat:treat}},function(e,t,r){r(63).config();function treat(e){const t=getVariablesFromCommand(e);if(t&&t.length>0){return t.reduce((e,t)=>e.replace(t[0],process.env[t[1]]||""),e)}else{return e}}function getVariablesFromCommand(e){return[...e.matchAll(/\${{ env\.(\w+) }}/g)]}e.exports={treat:treat}},,,,function(e,t,r){var n=r(622);var o=process.platform==="win32";var i=r(747);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(s){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var c=n.normalize;if(o){var a=/(.*?)(?:[\/\\]+|$)/g}else{var a=/(.*?)(?:[\/]+|$)/g}if(o){var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var u=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,s={},c={};var l;var f;var p;var d;start();function start(){var t=u.exec(e);l=t[0].length;f=t[0];p=t[0];d="";if(o&&!c[p]){i.lstatSync(p);c[p]=true}}while(l=e.length){if(t)t[s]=e;return r(null,e)}a.lastIndex=f;var n=a.exec(e);h=p;p+=n[0];d=h+n[1];f=a.lastIndex;if(l[d]||t&&t[d]===d){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,d)){return gotResolvedLink(t[d])}return i.lstat(d,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){l[d]=true;if(t)t[d]=d;return process.nextTick(LOOP)}if(!o){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(c.hasOwnProperty(s)){return gotTarget(null,c[s],d)}}i.stat(d,function(e){if(e)return r(e);i.readlink(d,function(e,t){if(!o)c[s]=t;gotTarget(e,t)})})}function gotTarget(e,o,i){if(e)return r(e);var s=n.resolve(h,o);if(t)t[i]=s;gotResolvedLink(s)}function gotResolvedLink(t){e=n.resolve(t,e.slice(f));start()}}},function(e,t,r){"use strict";const n=r(87);const o=new Map([[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]);const i=e=>{e=Number((e||n.release()).split(".")[0]);const[t,r]=o.get(e);return{name:t,version:r}};e.exports=i;e.exports.default=i},,function(e,t,r){e.exports=glob;var n=r(747);var o=r(302);var i=r(571);var s=i.Minimatch;var c=r(689);var a=r(614).EventEmitter;var u=r(622);var l=r(357);var f=r(681);var p=r(245);var d=r(856);var h=d.alphasort;var m=d.alphasorti;var g=d.setopts;var w=d.ownProp;var y=r(634);var b=r(669);var v=d.childrenIgnored;var E=d.isIgnored;var T=r(49);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return p(e,t)}return new Glob(e,t,r)}glob.sync=p;var S=glob.GlobSync=p.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var o=n.minimatch.set;if(!e)return false;if(o.length>1)return true;for(var i=0;ithis.maxLength)return t();if(!this.stat&&w(this.cache,r)){var i=this.cache[r];if(Array.isArray(i))i="DIR";if(!o||i==="DIR")return t(null,i);if(o&&i==="FILE")return t()}var s;var c=this.statCache[r];if(c!==undefined){if(c===false)return t(null,c);else{var a=c.isDirectory()?"DIR":"FILE";if(o&&a==="FILE")return t();else return t(null,a,c)}}var u=this;var l=y("stat\0"+r,lstatcb_);if(l)n.lstat(r,l);function lstatcb_(o,i){if(i&&i.isSymbolicLink()){return n.stat(r,function(n,o){if(n)u._stat2(e,r,null,i,t);else u._stat2(e,r,n,o,t)})}else{u._stat2(e,r,o,i,t)}}};Glob.prototype._stat2=function(e,t,r,n,o){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return o()}var i=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return o(null,false,n);var s=true;if(n)s=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||s;if(i&&s==="FILE")return o();return o(null,s,n)}},,,,,,,function(e,t,r){const n=r(357);const o=["2.1"];function validateDefinition(e){n(e,"definition file is empty or couldn't be loaded, please check 'definition-file' input");validateVersion(e.version,"definition")}function validateDependencies(e){validateVersion(e.version,"dependencies")}function validateVersion(e,t){n(e,`version is not defined on ${t} file. Please add version: x, where x is one of these values ${o}`);n(o.includes(e),`version ${e} is not allowed in ${t} file. Allowed versions: ${o}`)}function validateNode(e){n(e,"node is undefined. Please check your definition file. For example, projects declared as a dependency for another project has to be already defined (I mean from order point of view).");n(e.project,"project can't be undefined, please properly define your file.");n(e.project.split("/").length===2,`project has to defined following \`group/project\` pattern (i.e. \`kiegroup/drools\`). "${e.project}" instead`)}e.exports={validateDefinition:validateDefinition,validateDependencies:validateDependencies,validateNode:validateNode}},,function(e){e.exports=require("child_process")},,function(e,t,r){const{logger:n}=r(79);const{start:o}=r(361);const{createCommonConfig:i}=r(981);const s=r(357);async function execute(e,t,r,s,c,a={}){const u=await i(s,c,r);const l={token:e,octokit:t,config:u};n.debug("build-chain-pull-branch.js. githubInformation",s);n.debug("build-chain-pull-branch.js. config",u);await o(l,a)}async function executeFromEvent(e,t,r){const n=r["GITHUB_REPOSITORY_OWNER"];const o=r["GITHUB_REPOSITORY"];const i={sourceGroup:n,author:n,sourceRepository:o};await execute(e,t,r,i,undefined,{isArchiveArtifacts:true})}async function executeLocally(e,t,r,o,i,c,a,u={}){s(c.includes("/"),`project ${c} should follow 'group/projectName' pattern`);const l=i?i:c.split("/")[0];n.info(`Executing branch flow for ${c}:${a} in ${o}`);r["GITHUB_SERVER_URL"]="https://github.com";r["GITHUB_ACTION"]=undefined;r["GITHUB_ACTOR"]=l;r["GITHUB_HEAD_REF"]=a;r["GITHUB_BASE_REF"]=a;r["GITHUB_REPOSITORY"]=c;const f={sourceGroup:l,author:l,sourceRepository:c};await execute(e,t,r,f,o,u)}e.exports={executeLocally:executeLocally,executeFromEvent:executeFromEvent}},,,,,,function(e,t,r){const{checkoutDefinitionTree:n,getPlaceHolders:o}=r(330);const{executeBuild:i}=r(11);const{getOrderedListForProject:s}=r(352);const{printCheckoutInformation:c,printExecutionPlan:a}=r(656);const{logger:u}=r(79);const l=r(470);const{archiveArtifacts:f}=r(503);const{execute:p}=r(99);const{execute:d}=r(153);async function start(e,t={isArchiveArtifacts:true,skipExecution:false}){u.debug("full-downstream-flow.js options",t);const r={urlPlaceHolders:await o(e,e.config.github.inputs.definitionFile),token:e.token};u.debug("full-downstream-flow.js readerOptions",r);if(!t.skipExecution){await p(e.config.github.inputs.definitionFile,r)}const h=e.config.github.inputs.startingProject?e.config.github.inputs.startingProject:e.config.github.repository;u.debug("full-downstream-flow.js projectTriggeringJob",h);const m=await s(e.config.github.inputs.definitionFile,h,r);u.debug("full-downstream-flow.js nodeChain",m);if(!t.skipExecution){l.startGroup(`[Full Downstream Flow] Execution Plan...`);a(m,h);l.endGroup()}l.startGroup(`[Full Downstream Flow] Checking out ${e.config.github.groupProject} and its dependencies`);u.info(`Tree for project ${h}. Chain: ${m.map(e=>"\n"+e.project)}`);const g=await n(e,m,"pr",t);l.endGroup();l.startGroup(`[Full Downstream Flow] Checkout Summary...`);c(g);l.endGroup();if(!t.skipExecution){const n=await i(e.config.rootFolder,m,h,t).then(()=>true).catch(e=>e);if(t.isArchiveArtifacts){l.startGroup(`[Full Downstream Flow] Archiving artifacts...`);await f(m.find(e=>e.project===h),m,n===true?["success","always"]:["failure","always"]);l.endGroup()}else{u.info("Archive artifact won't be executed")}await d(e.config.github.inputs.definitionFile,n,r);if(n!==true){u.error(n);throw new Error(`Command executions have failed, please review latest execution ${n}`)}}else{u.info("Execution has been skipped.")}}e.exports={start:start}},,,,function(e,t,r){"use strict";var n=r(631);var o=r(16);var i=r(605);var s=r(211);var c=r(614);var a=r(357);var u=r(669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||i.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,r,n,o){var i=toOptions(r,n,o);for(var s=0,c=t.requests.length;s=this.maxSockets){o.requests.push(i);return}o.createSocket(i,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){o.emit("free",t,i)}function onCloseOrRemove(e){o.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 o=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){o.localAddress=e.localAddress}if(o.proxyAuth){o.headers=o.headers||{};o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")}l("making CONNECT request");var i=r.request(o);i.useChunkedEncodingByDefault=false;i.once("response",onResponse);i.once("upgrade",onUpgrade);i.once("connect",onConnect);i.once("error",onError);i.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(o,s,c){i.removeAllListeners();s.removeAllListeners();if(o.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",o.statusCode);s.destroy();var a=new Error("tunneling socket could not be established, "+"statusCode="+o.statusCode);a.code="ECONNRESET";e.request.emit("error",a);r.removeSocket(n);return}if(c.length>0){l("got illegal response body from proxy");s.destroy();var a=new Error("got illegal response body from proxy");a.code="ECONNRESET";e.request.emit("error",a);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=s;return t(s)}function onError(t){i.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, "+"cause="+t.message);o.code="ECONNRESET";e.request.emit("error",o);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 i=e.request.getHeader("host");var s=mergeOptions({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host});var c=o.connect(0,s);r.sockets[r.sockets.indexOf(n)]=c;t(c)})}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 a=e=>{if(e){e.bufferedData=i.getBufferedValue()}c(e)};i=n(e,o(t),e=>{if(e){a(e);return}s()});i.on("data",()=>{if(i.getBufferedLength()>r){a(new MaxBufferError)}})}).then(()=>i.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},,,,function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(622);const i=r(598);const s=r(727);function createFile(e,t){function makeFile(){i.writeFile(e,"",e=>{if(e)return t(e);t()})}i.stat(e,(r,n)=>{if(!r&&n.isFile())return t();const c=o.dirname(e);i.stat(c,(e,r)=>{if(e){if(e.code==="ENOENT"){return s.mkdirs(c,e=>{if(e)return t(e);makeFile()})}return t(e)}if(r.isDirectory())makeFile();else{i.readdir(c,e=>{if(e)return t(e)})}})})}function createFileSync(e){let t;try{t=i.statSync(e)}catch{}if(t&&t.isFile())return;const r=o.dirname(e);try{if(!i.statSync(r).isDirectory()){i.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")s.mkdirsSync(r);else throw e}i.writeFileSync(e,"")}e.exports={createFile:n(createFile),createFileSync:createFileSync}},,,,function(e,t,r){const{readDefinitionFile:n}=r(352);const{logger:o}=r(79);const{executeBuildCommands:i}=r(11);const s=r(470);async function execute(e,t,r={urlPlaceHolders:{},token:undefined}){const c=await n(e,r);if(c.post){s.startGroup(`[POST] Executing post section for ${e}`);if(t===true){o.info("[POST] execution result is OK, so 'success' and 'always' sections will be executed");if(c.post.success){await i(process.cwd(),c.post.success.split(/\r?\n/),"POST SUCCESS",{skipStartGroup:true})}}else{o.info("[POST] execution result is NOT OK, so 'failure' and 'always' sections will be executed");if(c.post.failure){await i(process.cwd(),c.post.failure.split(/\r?\n/),"POST FAILURE",{skipStartGroup:true})}}if(c.post.always){await i(process.cwd(),c.post.always.split(/\r?\n/),"POST ALWAYS",{skipStartGroup:true})}s.endGroup()}}e.exports={execute:execute}},,,,,,function(e){e.exports=(e=>{const t=process.versions.node.split(".").map(e=>parseInt(e,10));e=e.split(".").map(e=>parseInt(e,10));return t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])})},,,,,,,,,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 o=[];const i=Math.max(n.length,t.length);for(let r=0;r{const e=this.formatPercentage(this.processedCount,this.totalNumberOfFilesToProcess);n.info(`Total file count: ${this.totalNumberOfFilesToProcess} ---- Processed file #${this.processedCount} (${e.slice(0,e.indexOf(".")+2)}%)`)},this.displayFrequencyInMilliseconds);this.largeFileStatus=setInterval(()=>{for(const e of Array.from(this.largeFiles.values())){n.info(e)}this.largeFiles.clear()},1e3)}updateLargeFileStatus(e,t,r){const n=this.formatPercentage(t,r);const o=`Uploading ${e} (${n.slice(0,n.indexOf(".")+2)}%)`;this.largeFiles.set(e,o)}stop(){if(this.totalFileStatus){clearInterval(this.totalFileStatus)}if(this.largeFileStatus){clearInterval(this.largeFileStatus)}}incrementProcessedCount(){this.processedCount++}formatPercentage(e,t){return(e/t*100).toFixed(4).toString()}}t.StatusReporter=StatusReporter},,,,,,,,,,,,,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 o=e.request.endpoint.parse(r);const i=o.url.replace(r.baseUrl,"");return t(r).then(t=>{e.log.info(`${o.method} ${i} - ${t.status} in ${Date.now()-n}ms`);return t}).catch(t=>{e.log.info(`${o.method} ${i} - ${t.status} in ${Date.now()-n}ms`);throw t})})}requestLog.VERSION=r;t.requestLog=requestLog},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(605);const o=r(211);const i=r(651);let s;var c;(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"})(c=t.HttpCodes||(t.HttpCodes={}));var a;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(a=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=i.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const f=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const p=["OPTIONS","GET","DELETE","HEAD"];const d=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;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=new URL(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[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,u.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[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.post(e,n,r);return this._processResponse(o,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.put(e,n,r);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.patch(e,n,r);return this._processResponse(o,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let o=new URL(t);let i=this._prepareRequest(e,o,n);let s=this._allowRetries&&p.indexOf(e)!=-1?this._maxRetries+1:1;let a=0;let u;while(a0){const s=u.message.headers["location"];if(!s){break}let c=new URL(s);if(o.protocol=="https:"&&o.protocol!=c.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 u.readBody();if(c.hostname!==o.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}i=this._prepareRequest(e,c,n);u=await this.requestRaw(i,r);t--}if(f.indexOf(u.message.statusCode)==-1){return u}a+=1;if(a{let o=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,o)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;let i=(e,t)=>{if(!o){o=true;r(e,t)}};let s=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);i(null,t)});s.on("socket",e=>{n=e});s.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}i(new Error("Request timeout: "+e.options.path),null)});s.on("error",function(e){i(e,null)});if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){s.end()});t.pipe(s)}else{s.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const s=i.parsedUrl.protocol==="https:";i.httpModule=s?o:n;const c=s?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):c;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(i.options)})}return i}_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 o;if(this.requestOptions&&this.requestOptions.headers){o=n(this.requestOptions.headers)[t]}return e[t]||o||r}_getAgent(e){let t;let c=i.getProxyUrl(e);let a=c&&c.hostname;if(this._keepAlive&&a){t=this._proxyAgent}if(this._keepAlive&&!a){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(a){if(!s){s=r(413)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{...(c.username||c.password)&&{proxyAuth:`${c.username}:${c.password}`},host:c.hostname,port:c.port}};let n;const o=c.protocol==="https:";if(u){n=o?s.httpsOverHttps:s.httpsOverHttp}else{n=o?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new o.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=u?o.globalAgent:n.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(d,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 o=e.message.statusCode;const i={statusCode:o,result:null,headers:{}};if(o==c.NotFound){r(i)}let s;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){s=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(a)}i.result=s}i.headers=e.message.headers}catch(e){}if(o>299){let e;if(s&&s.message){e=s.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+o+")"}let t=new HttpClientError(e,o);t.result=i.result;n(t)}else{r(i)}})}}t.HttpClient=HttpClient},,,,,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 o=e.gid;var i=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var s=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var c=parseInt("100",8);var a=parseInt("010",8);var u=parseInt("001",8);var l=c|a;var f=r&u||r&a&&o===s||r&c&&n===i||r&l&&i===0;return f}},,,,,,,,,,,,,,function(e){e.exports=require("https")},,function(e){e.exports=require("timers")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(359);function create(){return n.DefaultArtifactClient.create()}t.create=create},,,,,,,,,,,,function(e,t,r){"use strict";e.exports={...r(869),...r(640),...r(774),...r(615),...r(472),...r(171),...r(727),...r(959),...r(353),...r(517),...r(322),...r(368)};const n=r(747);if(Object.getOwnPropertyDescriptor(n,"promises")){Object.defineProperty(e.exports,"promises",{get(){return n.promises}})}},,function(e,t,r){"use strict";var n=r(945);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},,,,,,,function(e,t,r){const n=r(986);r(63).config();async function execute(e,t,r={}){r.cwd=e;await n.exec(t,[],r)}e.exports={execute:execute}},,,,,,,,,,function(e,t,r){e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(747);var o=r(302);var i=r(571);var s=i.Minimatch;var c=r(120).Glob;var a=r(669);var u=r(622);var l=r(357);var f=r(681);var p=r(856);var d=p.alphasort;var h=p.alphasorti;var m=p.setopts;var g=p.ownProp;var w=p.childrenIgnored;var y=p.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);m(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return false;if(!this.stat&&g(this.cache,t)){var o=this.cache[t];if(Array.isArray(o))o="DIR";if(!r||o==="DIR")return o;if(r&&o==="FILE")return false}var i;var s=this.statCache[t];if(!s){var c;try{c=n.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(c&&c.isSymbolicLink()){try{s=n.statSync(t)}catch(e){s=c}}else{s=c}}this.statCache[t]=s;var o=true;if(s)o=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||o;if(r&&o==="FILE")return false;return o};GlobSync.prototype._mark=function(e){return p.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return p.makeAbs(this,e)}},,,,,function(e,t,r){var n=r(619);var o=process.cwd;var i=null;var s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!i)i=o.call(process);return i};try{process.cwd()}catch(e){}var c=process.chdir;process.chdir=function(e){i=null;c.call(process,e)};e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(s==="win32"){e.rename=function(t){return function(r,n,o){var i=Date.now();var s=0;t(r,n,function CB(c){if(c&&(c.code==="EACCES"||c.code==="EPERM")&&Date.now()-i<6e4){setTimeout(function(){e.stat(n,function(e,i){if(e&&e.code==="ENOENT")t(r,n,CB);else o(c)})},s);if(s<100)s+=10;return}if(o)o(c)})}}(e.rename)}e.read=function(t){function read(r,n,o,i,s,c){var a;if(c&&typeof c==="function"){var u=0;a=function(l,f,p){if(l&&l.code==="EAGAIN"&&u<10){u++;return t.call(e,r,n,o,i,s,a)}c.apply(this,arguments)}}return t.call(e,r,n,o,i,s,a)}read.__proto__=t;return read}(e.read);e.readSync=function(t){return function(r,n,o,i,s){var c=0;while(true){try{return t.call(e,r,n,o,i,s)}catch(e){if(e.code==="EAGAIN"&&c<10){c++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,o){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,function(t,n){if(t){if(o)o(t);return}e.fchmod(n,r,function(t){e.close(n,function(e){if(o)o(t||e)})})})};e.lchmodSync=function(t,r){var o=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var i=true;var s;try{s=e.fchmodSync(o,r);i=false}finally{if(i){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return s}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,r,o,i){e.open(t,n.O_SYMLINK,function(t,n){if(t){if(i)i(t);return}e.futimes(n,r,o,function(t){e.close(n,function(e){if(i)i(t||e)})})})};e.lutimesSync=function(t,r,o){var i=e.openSync(t,n.O_SYMLINK);var s;var c=true;try{s=e.futimesSync(i,r,o);c=false}finally{if(c){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return s}}else{e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,o){return t.call(e,r,n,function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)})}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,o,i){return t.call(e,r,n,o,function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)})}}function chownFixSync(t){if(!t)return t;return function(r,n,o){try{return t.call(e,r,n,o)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,o){if(typeof n==="function"){o=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(o)o.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var o=n?t.call(e,r,n):t.call(e,r);if(o.uid<0)o.uid+=4294967296;if(o.gid<0)o.gid+=4294967296;return o}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},,,,,,,,,,function(e,t,r){var n=r(357);var o=r(654);var i=/^win/i.test(process.platform);var s=r(614);if(typeof s!=="function"){s=s.EventEmitter}var c;if(process.__signal_exit_emitter__){c=process.__signal_exit_emitter__}else{c=process.__signal_exit_emitter__=new s;c.count=0;c.emitted={}}if(!c.infinite){c.setMaxListeners(Infinity);c.infinite=true}e.exports=function(e,t){n.equal(typeof e,"function","a callback must be provided for exit handler");if(u===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var o=function(){c.removeListener(r,e);if(c.listeners("exit").length===0&&c.listeners("afterexit").length===0){unload()}};c.on(r,e);return o};e.exports.unload=unload;function unload(){if(!u){return}u=false;o.forEach(function(e){try{process.removeListener(e,a[e])}catch(e){}});process.emit=f;process.reallyExit=l;c.count-=1}function emit(e,t,r){if(c.emitted[e]){return}c.emitted[e]=true;c.emit(e,t,r)}var a={};o.forEach(function(e){a[e]=function listener(){var t=process.listeners(e);if(t.length===c.count){unload();emit("exit",null,e);emit("afterexit",null,e);if(i&&e==="SIGHUP"){e="SIGINT"}process.kill(process.pid,e)}}});e.exports.signals=function(){return o};e.exports.load=load;var u=false;function load(){if(u){return}u=true;c.count+=1;o=o.filter(function(e){try{process.on(e,a[e]);return true}catch(e){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var l=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);l.call(process,process.exitCode)}var f=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=f.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return f.apply(this,arguments)}}},,,,,,,,,,,,,,,,,,,,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 o=Number.MAX_SAFE_INTEGER||9007199254740991;var i=16;var s=t.re=[];var c=t.src=[];var a=0;var u=a++;c[u]="0|[1-9]\\d*";var l=a++;c[l]="[0-9]+";var f=a++;c[f]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=a++;c[p]="("+c[u]+")\\."+"("+c[u]+")\\."+"("+c[u]+")";var d=a++;c[d]="("+c[l]+")\\."+"("+c[l]+")\\."+"("+c[l]+")";var h=a++;c[h]="(?:"+c[u]+"|"+c[f]+")";var m=a++;c[m]="(?:"+c[l]+"|"+c[f]+")";var g=a++;c[g]="(?:-("+c[h]+"(?:\\."+c[h]+")*))";var w=a++;c[w]="(?:-?("+c[m]+"(?:\\."+c[m]+")*))";var y=a++;c[y]="[0-9A-Za-z-]+";var b=a++;c[b]="(?:\\+("+c[y]+"(?:\\."+c[y]+")*))";var v=a++;var E="v?"+c[p]+c[g]+"?"+c[b]+"?";c[v]="^"+E+"$";var T="[v=\\s]*"+c[d]+c[w]+"?"+c[b]+"?";var S=a++;c[S]="^"+T+"$";var _=a++;c[_]="((?:<|>)?=?)";var O=a++;c[O]=c[l]+"|x|X|\\*";var A=a++;c[A]=c[u]+"|x|X|\\*";var P=a++;c[P]="[v=\\s]*("+c[A]+")"+"(?:\\.("+c[A]+")"+"(?:\\.("+c[A]+")"+"(?:"+c[g]+")?"+c[b]+"?"+")?)?";var C=a++;c[C]="[v=\\s]*("+c[O]+")"+"(?:\\.("+c[O]+")"+"(?:\\.("+c[O]+")"+"(?:"+c[w]+")?"+c[b]+"?"+")?)?";var k=a++;c[k]="^"+c[_]+"\\s*"+c[P]+"$";var R=a++;c[R]="^"+c[_]+"\\s*"+c[C]+"$";var j=a++;c[j]="(?:^|[^\\d])"+"(\\d{1,"+i+"})"+"(?:\\.(\\d{1,"+i+"}))?"+"(?:\\.(\\d{1,"+i+"}))?"+"(?:$|[^\\d])";var F=a++;c[F]="(?:~>?)";var x=a++;c[x]="(\\s*)"+c[F]+"\\s+";s[x]=new RegExp(c[x],"g");var D="$1~";var $=a++;c[$]="^"+c[F]+c[P]+"$";var G=a++;c[G]="^"+c[F]+c[C]+"$";var U=a++;c[U]="(?:\\^)";var I=a++;c[I]="(\\s*)"+c[U]+"\\s+";s[I]=new RegExp(c[I],"g");var L="$1^";var B=a++;c[B]="^"+c[U]+c[P]+"$";var q=a++;c[q]="^"+c[U]+c[C]+"$";var N=a++;c[N]="^"+c[_]+"\\s*("+T+")$|^$";var H=a++;c[H]="^"+c[_]+"\\s*("+E+")$|^$";var M=a++;c[M]="(\\s*)"+c[_]+"\\s*("+T+"|"+c[P]+")";s[M]=new RegExp(c[M],"g");var W="$1$2$3";var V=a++;c[V]="^\\s*("+c[P]+")"+"\\s+-\\s+"+"("+c[P]+")"+"\\s*$";var z=a++;c[z]="^\\s*("+c[C]+")"+"\\s+-\\s+"+"("+c[C]+")"+"\\s*$";var J=a++;c[J]="(<|>)?=?\\s*\\*";for(var Y=0;Yn){return null}var r=t.loose?s[S]:s[v];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 i=e.trim().match(t.loose?s[S]:s[v]);if(!i){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[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 o="";if(r.prerelease.length||n.prerelease.length){o="pre";var i="prerelease"}for(var s in r){if(s==="major"||s==="minor"||s==="patch"){if(r[s]!==n[s]){return o+s}}}return i}}t.compareIdentifiers=compareIdentifiers;var X=/^[0-9]+$/;function compareIdentifiers(e,t){var r=X.test(e);var n=X.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===Z){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var Z={};Comparator.prototype.parse=function(e){var t=this.options.loose?s[N]:s[H];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=Z}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===Z){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 o=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var i=this.semver.version===e.semver.version;var s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var c=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var a=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||o||i&&s||c||a};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?s[z]:s[V];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(s[M],W);r("comparator trim",e,s[M]);e=e.replace(s[x],D);e=e.replace(s[I],L);e=e.split(/\s+/).join(" ");var o=t?s[N]:s[H];var i=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){i=i.filter(function(e){return!!e.match(o)})}i=i.map(function(e){return new Comparator(e,this.options)},this);return i};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?s[G]:s[$];return e.replace(n,function(t,n,o,i,s){r("tilde",e,t,n,o,i,s);var c;if(isX(n)){c=""}else if(isX(o)){c=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(i)){c=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0"}else if(s){r("replaceTilde pr",s);c=">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+(+o+1)+".0"}else{c=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0"}r("tilde return",c);return c})}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?s[q]:s[B];return e.replace(n,function(t,n,o,i,s){r("caret",e,t,n,o,i,s);var c;if(isX(n)){c=""}else if(isX(o)){c=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(i)){if(n==="0"){c=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0"}else{c=">="+n+"."+o+".0 <"+(+n+1)+".0.0"}}else if(s){r("replaceCaret pr",s);if(n==="0"){if(o==="0"){c=">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+o+"."+(+i+1)}else{c=">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+(+o+1)+".0"}}else{c=">="+n+"."+o+"."+i+"-"+s+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(o==="0"){c=">="+n+"."+o+"."+i+" <"+n+"."+o+"."+(+i+1)}else{c=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0"}}else{c=">="+n+"."+o+"."+i+" <"+(+n+1)+".0.0"}}r("caret return",c);return c})}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?s[R]:s[k];return e.replace(n,function(t,n,o,i,s,c){r("xRange",e,t,n,o,i,s,c);var a=isX(o);var u=a||isX(i);var l=u||isX(s);var f=l;if(n==="="&&f){n=""}if(a){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&f){if(u){i=0}s=0;if(n===">"){n=">=";if(u){o=+o+1;i=0;s=0}else{i=+i+1;s=0}}else if(n==="<="){n="<";if(u){o=+o+1}else{i=+i+1}}t=n+o+"."+i+"."+s}else if(u){t=">="+o+".0.0 <"+(+o+1)+".0.0"}else if(l){t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(s[J],"")}function hyphenReplace(e,t,r,n,o,i,s,c,a,u,l,f,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(o)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(a)){c=""}else if(isX(u)){c="<"+(+a+1)+".0.0"}else if(isX(l)){c="<"+a+"."+(+u+1)+".0"}else if(f){c="<="+a+"."+u+"."+l+"-"+f}else{c="<="+c}return(t+" "+c).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 i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.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 o=null;try{var i=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(i.test(e)){if(!n||o.compare(e)===-1){n=e;o=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var o=null;try{var i=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(i.test(e)){if(!n||o.compare(e)===1){n=e;o=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 o,i,s,c,a;switch(r){case">":o=gt;i=lte;s=lt;c=">";a=">=";break;case"<":o=lt;i=gte;s=gt;c="<";a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u=0.0.0")}f=f||e;p=p||e;if(o(e.semver,f.semver,n)){f=e}else if(s(e.semver,p.semver,n)){p=e}});if(f.operator===c||f.operator===a){return false}if((!p.operator||p.operator===c)&&i(e,p.semver)){return false}else if(p.operator===a&&s(e,p.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(s[j]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const o=r(297);function create(e,t){return n(this,void 0,void 0,function*(){return yield o.DefaultGlobber.create(e,t)})}t.create=create},,,function(e,t,r){const n=r(235);const o=r(987);async function executeCommand(e,t){let r=n;if(isExport(t)){r=o}return await r.execute(e,t)}function isExport(e){return e.trim().match(/^export .*=/)}e.exports={executeCommand:executeCommand}},,,,,,,,,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;r1||resume(e,t)})}}function resume(e,t){try{step(n[e](t))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof i?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),s.shift(),s.length)resume(s[0][0],s[0][1])}};Object.defineProperty(t,"__esModule",{value:true});const c=r(470);const a=r(747);const u=r(601);const l=r(622);const f=r(597);const p=r(327);const d=r(923);const h=r(728);const m=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=u.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return n(this,void 0,void 0,function*(){const r=[];try{for(var n=o(this.globGenerator()),i;i=yield n.next(),!i.done;){const e=i.value;r.push(e)}}catch(t){e={error:t}}finally{try{if(i&&!i.done&&(t=n.return))yield t.call(n)}finally{if(e)throw e.error}}return r})}globGenerator(){return s(this,arguments,function*globGenerator_1(){const e=u.getOptions(this.options);const t=[];for(const r of this.patterns){t.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){t.push(new d.Pattern(r.negate,r.segments.concat("**")))}}const r=[];for(const e of f.getSearchPaths(t)){c.debug(`Search path '${e}'`);try{yield i(a.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new h.SearchState(e,1))}const n=[];while(r.length){const o=r.pop();const s=f.match(t,o.path);const c=!!s||f.partialMatch(t,o.path);if(!s&&!c){continue}const u=yield i(DefaultGlobber.stat(o,e,n));if(!u){continue}if(u.isDirectory()){if(s&p.MatchKind.Directory){yield yield i(o.path)}else if(!c){continue}const e=o.level+1;const t=(yield i(a.promises.readdir(o.path))).map(t=>new h.SearchState(l.join(o.path,t),e));r.push(...t.reverse())}else if(s&p.MatchKind.File){yield yield i(o.path)}}})}static create(e,t){return n(this,void 0,void 0,function*(){const r=new DefaultGlobber(t);if(m){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const n=e.split("\n").map(e=>e.trim());for(const e of n){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new d.Pattern(e))}}r.searchPaths.push(...f.getSearchPaths(r.patterns));return r})}static stat(e,t,r){return n(this,void 0,void 0,function*(){let n;if(t.followSymbolicLinks){try{n=yield a.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){c.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{n=yield a.promises.lstat(e.path)}if(n.isDirectory()&&t.followSymbolicLinks){const t=yield a.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some(e=>e===t)){c.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}r.push(t)}return n})}}t.DefaultGlobber=DefaultGlobber},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.4.0";function normalizePaginatedListResponse(e){const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const o=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const i=Object.keys(e.data)[0];const s=e.data[i];e.data=s;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=o;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const o=typeof t==="function"?t:e.request;const i=n.method;const s=n.headers;let c=n.url;return{[Symbol.asyncIterator]:()=>({next(){if(!c){return Promise.resolve({done:true})}return o({method:i,url:c,headers:s}).then(normalizePaginatedListResponse).then(e=>{c=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:e}})}})}}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(o=>{if(o.done){return t}let i=false;function done(){i=true}t=t.concat(n?n(o.value,done):o.value.data);if(i){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},,,function(e,t,r){e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(747);var o=n.realpath;var i=n.realpathSync;var s=process.version;var c=/^v[0-5]\./.test(s);var a=r(117);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(c){return o(e,t,r)}if(typeof t==="function"){r=t;t=null}o(e,t,function(n,o){if(newError(n)){a.realpath(e,t,r)}else{r(n,o)}})}function realpathSync(e,t){if(c){return i(e,t)}try{return i(e,t)}catch(r){if(newError(r)){return a.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=o;n.realpathSync=i}},,function(e){e.exports=require("string_decoder")},,function(e,t,r){var n=r(896);var o=r(621);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var c="\0CLOSE"+Math.random()+"\0";var a="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(s).split("\\}").join(c).split("\\,").join(a).split("\\.").join(u)}function unescapeBraces(e){return e.split(i).join("\\").split(s).join("{").split(c).join("}").split(a).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=o("{","}",e);if(!r)return e.split(",");var n=r.pre;var i=r.body;var s=r.post;var c=n.split(",");c[c.length-1]+="{"+i+"}";var a=parseCommaParts(s);if(s.length){c[c.length-1]+=a.shift();c.push.apply(c,a)}t.push.apply(t,c);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var i=o("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var u=s||a;var l=i.body.indexOf(",")>=0;if(!u&&!l){if(i.post.match(/,.*\}/)){e=i.pre+"{"+i.body+c+i.post;return expand(e)}return[e]}var f;if(u){f=i.body.split(/\.\./)}else{f=parseCommaParts(i.body);if(f.length===1){f=expand(f[0],false).map(embrace);if(f.length===1){var p=i.post.length?expand(i.post,false):[""];return p.map(function(e){return i.pre+f[0]+e})}}}var d=i.pre;var p=i.post.length?expand(i.post,false):[""];var h;if(u){var m=numeric(f[0]);var g=numeric(f[1]);var w=Math.max(f[0].length,f[1].length);var y=f.length==3?Math.abs(numeric(f[2])):1;var b=lte;var v=g0){var O=new Array(_+1).join("0");if(T<0)S="-"+O+S.slice(1);else S=O+S}}}h.push(S)}}else{h=n(f,function(e){return expand(e,false)})}for(var A=0;Atrue).catch(()=>false)}e.exports={pathExists:n(pathExists),pathExistsSync:o.existsSync}},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"}},,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(r=t.MatchKind||(t.MatchKind={}))},function(e,t,r){const{getTree:n,getTreeForProject:o}=r(101);const{parentChainFromNode:i}=r(636);async function getOrderedListForTree(e,t={urlPlaceHolders:{},token:undefined}){const r=await n(e,t);return getOrderedList(r)}async function getOrderedListForProject(e,t,r={urlPlaceHolders:{},token:undefined}){const n=await o(e,t,r);return getOrderedList([n])}async function getOrderedList(e){const t=getFinalLeavesFromTree(e);return t.map(e=>i(e)).sort((e,t)=>t.length-e.length).reduce((e,t)=>{e.push(...t.filter(t=>!e.map(e=>e.project).includes(t.project)));return e},[])}function getFinalLeavesFromTree(e,t=[],r=[]){if(e&&e.length>0){const n=[...r];const o=e.filter(e=>!n.includes(e.project)).reduce((e,t)=>{e.push(...t.children.filter(t=>!e.map(e=>e.project).includes(t.project)));return e},[]);r.push(...e.map(e=>e.project));getFinalLeavesFromTree(o,t,r);t.push(...e.filter(e=>(!e.children||e.children.length===0)&&!t.map(e=>e.project).includes(e.project)));return t}else{return[]}}e.exports={getOrderedListForProject:getOrderedListForProject,getOrderedListForTree:getOrderedListForTree,getOrderedList:getOrderedList}},,function(e,t,r){const{clone:n,doesBranchExist:o,rename:i,merge:s,hasPullRequest:c,getForkedProject:a,getRepository:u}=r(484);const{logger:l}=r(79);const{treatUrl:f}=r(352);const{checkUrlExist:p}=r(22);const{getNodeTriggeringJob:d}=r(645);const{copyNodeFolder:h}=r(828);const m=r(747);const g=r(622);async function checkoutDefinitionTree(e,t,r="pr",n={skipProjectCheckout:new Map,skipParallelCheckout:false}){n.skipProjectCheckout=[null,undefined].includes(n.skipProjectCheckout)?new Map:n.skipProjectCheckout;const o=n.skipParallelCheckout?await checkoutDefinitionTreeSequencial(e,t,r,n):await checkoutDefinitionTreeParallel(e,t,r,n);return o}async function checkoutDefinitionTreeParallel(e,t,r,n){const o=d(e,t);l.debug("nodeTriggeringTheJob",o);return Promise.all(t.map(async t=>{try{const i=n.skipCheckout||n.skipProjectCheckout.get(t.project);const s=Promise.resolve({project:t.project,checkoutInfo:await checkoutAndComposeInfo(e,t,o,r,i)});l.info(`[${t.project}] ${i?"Check out skipped.":"Checked out."}`);if(!i){cloneNode(e.config.rootFolder,t,getDir(e.config.rootFolder,t.project,n.skipProjectCheckout.get(t.project)))}return s}catch(e){throw{project:t.project,message:e}}})).then(e=>{return e.reduce((e,t)=>{e[t.project]=t.checkoutInfo;return e},{})}).catch(e=>{l.error(`[${e.project}] Error checking it out. ${e.message}`);throw e.message})}async function checkoutDefinitionTreeSequencial(e,t,r,n){const o=[];const i=d(e,t);l.debug("nodeTriggeringTheJob",i);for(const s of t){try{const t=n.skipCheckout||n.skipProjectCheckout.get(s.project);o.push({project:s.project,checkoutInfo:await checkoutAndComposeInfo(e,s,i,r,t)});l.info(`[${s.project}] ${t?"Check out skipped.":"Checked out."}`);if(!t){cloneNode(e.config.rootFolder,s,getDir(e.config.rootFolder,s.project,n.skipProjectCheckout.get(s.project)))}}catch(e){l.error(`Error checking out project ${s.project}`);throw e}}return o.reduce((e,t)=>{e[t.project]=t.checkoutInfo;return e},{})}async function checkoutAndComposeInfo(e,t,r,n,o){return n==="pr"?await checkoutProjectPullRequestFlow(e,t,r,o):await checkoutProjectBranchFlow(e,t,r,o)}async function checkoutProjectPullRequestFlow(e,t,r,n){l.info(`[${t.project}] Checking out project`);const o=getDir(e.config.rootFolder,t.project);if(!m.existsSync(o)){const i=await getCheckoutInfo(e,t,r,true);if(i==undefined){const e=`[${t.project}] Trying to checking out ${t.project} into '${o}'. It does not exist.`;l.error(e);throw new Error(e)}if(!n){await checkoutNode(e,t,i,o)}return i}else{l.info(`[${t.project}] folder ${o} already exists, nothing to checkout`);return undefined}}async function checkoutNode(e,t,r,o){if(r.merge){l.info(`[${t.project}] Merging ${e.config.github.serverUrl}/${t.project}:${r.targetBranch} into ${e.config.github.serverUrl}/${r.group}/${r.project}:${r.branch}`);try{await n(`${e.config.github.serverUrlWithToken}/${t.project}`,o,r.targetBranch)}catch(r){l.error(`[${t.project}] Error checking out (before merging) ${e.config.github.serverUrl}/${t.repo.group}/${t.project}:${e.config.github.targetBranch}`);throw r}try{await s(o,`${e.config.github.serverUrlWithToken}/${r.group}/${r.project}`,r.branch)}catch(n){l.error(`[${t.project}] Error merging ${e.config.github.serverUrl}/${r.group}/${r.project}:${r.branch}. Please manually merge it and relaunch.`);throw n}try{await i(o,r.branch)}catch(e){l.error(`[${t.project}] Error renaming branch (after merging) to ${r.branch}.`);throw e}}else{try{l.info(`[${t.project}] Checking out '${e.config.github.serverUrl}/${r.group}/${r.project}:${r.branch}' into '${o}'`);await n(`${e.config.github.serverUrlWithToken}/${r.group}/${r.project}`,o,r.branch)}catch(n){l.error(`[${t.project}] Error checking out ${e.config.github.serverUrl}/${r.group}/${r.project}.`);throw n}}}async function checkoutProjectBranchFlow(e,t,r,o){l.info(`[${t.project}] Checking out project`);const i=getDir(e.config.rootFolder,t.project);if(!m.existsSync(i)){const s=await getCheckoutInfo(e,t,r,false);if(s==undefined){const e=`Trying to checking out ${t.project} into '${i}'. It does not exist.`;l.error(e);throw new Error(e)}if(!o){try{l.info(`Checking out '${e.config.github.serverUrl}/${s.group}/${s.project}:${s.targetBranch}' into '${i}'`);await n(`${e.config.github.serverUrlWithToken}/${s.group}/${s.project}`,i,s.targetBranch)}catch(t){l.error(`Error checking out ${e.config.github.serverUrl}/${s.group}/${s.project}.`);throw t}}return s}else{l.info(`folder ${i} already exists, nothing to checkout`);return undefined}}async function composeCheckoutInfo(e,t,r,n,i,s,a,u,l=true){const f=await o(e.octokit,t,r,n);const p=f&&(u||l)?await c(e.octokit,i,a,n,e.config.github.author):undefined;return(!u||p)&&f?{project:r,group:t,branch:n,targetGroup:i,targetBranch:s,merge:l?p:false}:undefined}async function getCheckoutInfo(e,t,r,n){const o=e.config.github.sourceGroup;const i=e.config.github.sourceBranch;const s=t.repo.group;const c=t.repo.name;const a=getTarget(r.project,r.mapping,t.project,t.mapping,e.config.github.targetBranch);const u=await getForkedProjectName(e.octokit,s,c,o);l.debug(`[${s}/${c}] Getting checkout Info. sourceProject: ${u} sourceGroup: ${o}. sourceBranch: ${i}. targetGroup: ${s}. targetBranch: ${a}. Mapping target: ${a}`);const f=await composeCheckoutInfo(e,o,u,i,s,a,c,n);if(f){return f}const p=await composeCheckoutInfo(e,s,c,i,s,a,c,n);if(p){return p}const d=await composeCheckoutInfo(e,s,c,a,s,a,c,false,false);return d}function getTarget(e,t,r,n,o){if(r!==e){if(t&&(t.exclude?!t.exclude.includes(r):true)){const e=getMappingInfo(r,t.dependencies[r],o)||getMappingInfo(r,t.dependencies.default,o);if(e){return e.target}}if(n&&n.dependant&&(n.exclude?!n.exclude.includes(e):true)){const t=getMappingInfo(r,n.dependant[e],o)||getMappingInfo(r,n.dependant.default,o);if(t){return t.target}}}return o}function getMappingInfo(e,t,r){if(t){const n=t.filter(e=>e.source===r);const o=t.filter(e=>r.match(new RegExp(`^${e.source}$`)));const i=n&&n.length?n:o;if(i.length){const t=i[0];if(i.length>1){l.warn(`The mapping for ${e} has a duplication for source branch ${r}. First matching ${t.target} will be used.`)}return t}}return undefined}function getDir(e,t,r=undefined){if(r){return r}const n=e!==undefined&&e!==""?e:".";return`${g.join(n,t.replace(/ |-/g,"_").replace("/","_"))}`}async function getForkedProjectName(e,t,r,n){if(t!==n){const o=await u(e,n,r)||await a(e,t,r,n);return!o||!o.name?r:o.name}else{return r}}async function doesDefinitionFilePlaceHolderExists(e,t,r){const n=f(e,t);const o=await p(n,r);o?l.info(`${n} exists, using it`):l.warn(`${n} does not exists.`);return o?n:undefined}function getPlaceHoldersDefaultValues(e){const t={};const r=/\${([^$]+)}/g;let n;while(n=r.exec(e)){const e=n[1];l.debug(`Placeholder group found ${e}`);const r=/(.*):(.*)/g;const o=r.exec(e);l.debug(`Placeholder value match. ${e}.`,o);if(o!==null){l.debug(`Placeholder key and value. ${o[1]}: ${o[2]}`);t[o[1]]=o[2]}}l.debug(`getPlaceHoldersDefaultValues. definitionFile: ${e}:`,t);return t}async function getPlaceHolders(e,t,r={}){let n=r;if(t.startsWith("http")&&t.includes("${")){n={GROUP:e.config.github.sourceGroup,PROJECT_NAME:e.config.github.project,BRANCH:e.config.github.sourceBranch,...r};const o=await doesDefinitionFilePlaceHolderExists(t,n,e.token);if(!o){n={GROUP:e.config.github.group,PROJECT_NAME:e.config.github.project,BRANCH:e.config.github.targetBranch,...r};const o=await doesDefinitionFilePlaceHolderExists(t,n,e.token);if(!o){n={GROUP:e.config.github.group,PROJECT_NAME:e.config.github.project,BRANCH:e.config.github.sourceBranch,...r};const o=await doesDefinitionFilePlaceHolderExists(t,n,e.token);if(!o){n=getPlaceHoldersDefaultValues(t);if(![null,undefined].includes(n)&&Object.keys(n).length>0){n=getPlaceHolders(e,f(t,n),n)}else{throw new Error(`Definition file ${t} does not exist for any case. Not default values defined for placeholders.`)}}}}}else if(t.startsWith("http")){l.info(`${t} exists, using it`)}return n}function cloneNode(e,t,r){if(t.build&&t.build.clone){l.info(`[${t.project}] Clonning folder ${r} into ${t.build.clone}`);const n=h(e,r,t.build.clone);l.info(`[${t.project}] Clonned folder ${r} into ${n}`)}}e.exports={checkoutDefinitionTree:checkoutDefinitionTree,getCheckoutInfo:getCheckoutInfo,getDir:getDir,getPlaceHolders:getPlaceHolders,getTarget:getTarget,getForkedProjectName:getForkedProjectName,getPlaceHoldersDefaultValues:getPlaceHoldersDefaultValues}},,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},,,,,,,,,,,,,,,,function(e,t,r){const{getTree:n,getTreeForProject:o}=r(101);const{getOrderedListForTree:i,getOrderedListForProject:s}=r(328);const{readDefinitionFile:c}=r(799);const{parentChainFromNode:a}=r(636);const{treatUrl:u}=r(824);e.exports={getTree:n,getTreeForProject:o,getOrderedListForTree:i,getOrderedListForProject:s,readDefinitionFile:c,parentChainFromNode:a,treatUrl:u}},function(e,t,r){"use strict";const n=r(676).fromCallback;e.exports={move:n(r(500))}},,,function(e){function stringify(e,t={}){const r=t.EOL||"\n";const n=JSON.stringify(e,t?t.replacer:null,t.spaces);return n.replace(/\n/g,r)+r}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},function(e){e.exports=require("assert")},,function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=o(r(470));const s=r(590);const c=r(888);const a=r(870);const u=r(855);const l=r(532);const f=r(401);const p=r(622);class DefaultArtifactClient{static create(){return new DefaultArtifactClient}uploadArtifact(e,t,r,o){return n(this,void 0,void 0,function*(){a.checkArtifactName(e);const n=s.getUploadSpecification(e,r,t);const u={artifactName:e,artifactItems:[],size:0,failedItems:[]};const l=new c.UploadHttpClient;if(n.length===0){i.warning(`No files found that can be uploaded`)}else{const t=yield l.createArtifactInFileContainer(e);if(!t.fileContainerResourceUrl){i.debug(t.toString());throw new Error("No URL provided by the Artifact Service to upload an artifact to")}i.debug(`Upload Resource URL: ${t.fileContainerResourceUrl}`);const r=yield l.uploadArtifactToFileContainer(t.fileContainerResourceUrl,n,o);yield l.patchArtifactSize(r.totalSize,e);i.info(`Finished uploading artifact ${e}. Reported size is ${r.uploadSize} bytes. There were ${r.failedItems.length} items that failed to upload`);u.artifactItems=n.map(e=>e.absoluteFilePath);u.size=r.uploadSize;u.failedItems=r.failedItems}return u})}downloadArtifact(e,t,r){return n(this,void 0,void 0,function*(){const n=new u.DownloadHttpClient;const o=yield n.listArtifacts();if(o.count===0){throw new Error(`Unable to find any artifacts for the associated workflow`)}const s=o.value.find(t=>{return t.name===e});if(!s){throw new Error(`Unable to find an artifact with the name: ${e}`)}const c=yield n.getContainerItems(s.name,s.fileContainerResourceUrl);if(!t){t=f.getWorkSpaceDirectory()}t=p.normalize(t);t=p.resolve(t);const d=l.getDownloadSpecification(e,c.value,t,(r===null||r===void 0?void 0:r.createArtifactFolder)||false);if(d.filesToDownload.length===0){i.info(`No downloadable files were found for the artifact: ${s.name}`)}else{yield a.createDirectoriesForArtifact(d.directoryStructure);i.info("Directory structure has been setup for the artifact");yield a.createEmptyFilesForArtifact(d.emptyFilesToCreate);yield n.downloadSingleArtifact(d.filesToDownload)}return{artifactName:e,downloadPath:d.rootDownloadLocation}})}downloadAllArtifacts(e){return n(this,void 0,void 0,function*(){const t=new u.DownloadHttpClient;const r=[];const n=yield t.listArtifacts();if(n.count===0){i.info("Unable to find any artifacts for the associated workflow");return r}if(!e){e=f.getWorkSpaceDirectory()}e=p.normalize(e);e=p.resolve(e);let o=0;while(o"\n"+e.project)}`);const w=await n(e,g,"branch",t);a.endGroup();a.startGroup(`[Branch Flow] Checkout Summary...`);l(w);a.endGroup();if(!t.skipExecution){const n=t.command?await p(e.config.rootFolder,g,t.command,t).then(()=>true).catch(e=>e):await f(e.config.rootFolder,g,e.config.github.repository,t).then(()=>true).catch(e=>e);await h(e.config.github.inputs.definitionFile,n,r);if(n!==true){u.error(n);throw new Error(`Command executions have failed, please review latest execution ${n}`)}}else{u.info("Execution has been skipped.")}}e.exports={start:start}},,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)()})}},,,,,function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(474);e.exports={remove:n(o),removeSync:o.sync}},,,,,function(e){e.exports=require("crypto")},,function(e){function formatDate(e){return`${e.getFullYear()}${e.getMonth()}${e.getDate()}${e.getHours()}${e.getMinutes()}${e.getSeconds()}`}e.exports={formatDate:formatDate}},,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(357);const o=r(622);const i=r(972);const s=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){n(e,`Parameter 'itemPath' must not be empty`);e=i.safeTrimTrailingSeparator(e);if(!i.hasRoot(e)){this.segments=e.split(o.sep)}else{let t=e;let r=i.dirname(t);while(r!==t){const e=o.basename(t);this.segments.unshift(e);t=r;r=i.dirname(t)}this.segments.unshift(t)}}else{n(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t{t[r.toLowerCase()]=e[r];return t},{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach(o=>{if(n.isPlainObject(t[o])){if(!(o in e))Object.assign(r,{[o]:t[o]});else r[o]=mergeDeep(e[o],t[o])}else{Object.assign(r,{[o]:t[o]})}});return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}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);removeUndefinedProperties(r);removeUndefinedProperties(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 i=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(i);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 o=e[r],i=[];if(isDefined(o)&&o!==""){if(typeof o==="string"||typeof o==="number"||typeof o==="boolean"){o=o.toString();if(n&&n!=="*"){o=o.substring(0,parseInt(n,10))}i.push(encodeValue(t,o,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(o)){o.filter(isDefined).forEach(function(e){i.push(encodeValue(t,e,isKeyOperator(t)?r:""))})}else{Object.keys(o).forEach(function(e){if(isDefined(o[e])){i.push(encodeValue(t,o[e],e))}})}}else{const e=[];if(Array.isArray(o)){o.filter(isDefined).forEach(function(r){e.push(encodeValue(t,r))})}else{Object.keys(o).forEach(function(r){if(isDefined(o[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,o[r].toString()))}})}if(isKeyOperator(t)){i.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){i.push(e.join(","))}}}}else{if(t===";"){if(isDefined(o)){i.push(encodeUnreserved(r))}}else if(o===""&&(t==="&"||t==="?")){i.push(encodeUnreserved(r)+"=")}else if(o===""){i.push("")}}return i}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,n,o){if(n){let e="";const o=[];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);o.push(getValues(t,e,n[1],n[2]||n[3]))});if(e&&e!=="+"){var i=",";if(e==="?"){i="&"}else if(e!=="#"){i=e}return(o.length!==0?e:"")+o.join(i)}else{return o.join(",")}}else{return encodeReserved(o)}})}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 o;let i=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const s=extractUrlVariableNames(r);r=parseUrl(r).expand(i);if(!/^http/.test(r)){r=e.baseUrl+r}const c=Object.keys(e).filter(e=>s.includes(e)).concat("baseUrl");const a=omit(i,c);const u=/application\/octet-stream/i.test(n.accept);if(!u){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,a)}else{if("data"in a){o=a.data}else{if(Object.keys(a).length){o=a}else{n["content-length"]=0}}}if(!n["content-type"]&&typeof o!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof o==="undefined"){o=""}return Object.assign({method:t,url:r,headers:n},typeof o!=="undefined"?{body:o}: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 s="6.0.8";const c=`octokit-endpoint.js/${s} ${o.getUserAgent()}`;const a={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":c},mediaType:{format:"",previews:[]}};const u=withDefaults(null,a);t.endpoint=u},function(e,t,r){"use strict";var n=r(945);function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(e){return typeof e==="undefined"}e.exports=new n("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},,,function(e,t,r){"use strict";const n=r(747);const o=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 i;try{i=n.openSync(e,"r");n.readSync(i,r,0,t,0);n.closeSync(i)}catch(e){}return o(r.toString())}e.exports=readShebang},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},,,function(e,t,r){const{create:n}=r(214);const o=r(470);const i=r(787);const{findFilesToUpload:s}=r(819);const{logger:c}=r(79);var a=r(357);async function run(e,t=["success","failure"]){a(e,"archiveArtifacts is not defined");a(e.paths,"archiveArtifacts.paths is not defined");a(e.name,"archiveArtifacts.name is not defined");const r=e.paths.filter(e=>e&&e.path&&t.includes(e.on)).reduce((e,t)=>e.concat(t.path,"\n"),"").trim();try{c.info(`Uploading artifacts for path [${r}]`);const t=await s(r);if(t.filesToUpload.length===0){switch(e.ifNoFilesFound){case i.error:{o.setFailed(`[ERROR] No files were found with the provided path: ${r}. No artifacts will be uploaded.`);break}case i.ignore:{o.info(`[INFO] No files were found with the provided path: ${r}. No artifacts will be uploaded.`);break}case i.warn:default:{o.warning(`[WARNING] No files were found with the provided path: ${r}. No artifacts will be uploaded.`)}}}else{o.info(`[INFO] With the provided path (${r}), there will be ${t.filesToUpload.length} file(s) uploaded`);o.debug(`[DEBUG] Root artifact directory is ${t.rootDirectory}`);const i=n();const s={continueOnError:false};const c=await i.uploadArtifact(e.name,t.filesToUpload,t.rootDirectory,s);if(c.failedItems.length>0){o.setFailed(`[ERROR] An error was encountered when uploading ${c.artifactName}. There were ${c.failedItems.length} items that failed to upload.`)}else{o.info(`[INFO] Artifact ${c.artifactName} has been successfully uploaded!`)}return c}}catch(e){o.setFailed(e.message)}return undefined}e.exports={run:run}},,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUploadFileConcurrency(){return 2}t.getUploadFileConcurrency=getUploadFileConcurrency;function getUploadChunkSize(){return 8*1024*1024}t.getUploadChunkSize=getUploadChunkSize;function getRetryLimit(){return 5}t.getRetryLimit=getRetryLimit;function getRetryMultiplier(){return 1.5}t.getRetryMultiplier=getRetryMultiplier;function getInitialRetryIntervalInMilliseconds(){return 3e3}t.getInitialRetryIntervalInMilliseconds=getInitialRetryIntervalInMilliseconds;function getDownloadFileConcurrency(){return 2}t.getDownloadFileConcurrency=getDownloadFileConcurrency;function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_TOKEN env variable")}return e}t.getRuntimeToken=getRuntimeToken;function getRuntimeUrl(){const e=process.env["ACTIONS_RUNTIME_URL"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_URL env variable")}return e}t.getRuntimeUrl=getRuntimeUrl;function getWorkFlowRunId(){const e=process.env["GITHUB_RUN_ID"];if(!e){throw new Error("Unable to get GITHUB_RUN_ID env variable")}return e}t.getWorkFlowRunId=getWorkFlowRunId;function getWorkSpaceDirectory(){const e=process.env["GITHUB_WORKSPACE"];if(!e){throw new Error("Unable to get GITHUB_WORKSPACE env variable")}return e}t.getWorkSpaceDirectory=getWorkSpaceDirectory},function(e,t,r){const n=r(747);const o=r(87);const i=r(622);const s=r(373);const c=n.constants&&o.constants?{fs:n.constants,os:o.constants}:process.binding("constants");const a=r(569);const u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",l=/XXXXXX/,f=3,p=(c.O_CREAT||c.fs.O_CREAT)|(c.O_EXCL||c.fs.O_EXCL)|(c.O_RDWR||c.fs.O_RDWR),d=c.EBADF||c.os.errno.EBADF,h=c.ENOENT||c.os.errno.ENOENT,m=448,g=384,w="exit",y="SIGINT",b=[];var v=false;function _randomChars(e){var t=[],r=null;try{r=s.randomBytes(e)}catch(t){r=s.pseudoRandomBytes(e)}for(var n=0;n0)return _getUniqueName();return i(new Error("Could not get a unique tmp filename, max tries reached "+e))}i(null,e)})}catch(e){i(e)}})()}function tmpNameSync(e){var t=_parseArguments(e),r=t[0],o=!isBlank(r.name)?1:r.tries||f;if(isNaN(o)||o<0)throw new Error("Invalid tries");if(r.template&&!r.template.match(l))throw new Error("Invalid template provided");do{const e=_generateTmpName(r);try{n.statSync(e)}catch(t){return e}}while(o-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){var r=_parseArguments(e,t),o=r[0],i=r[1];tmpName(o,function _tmpNameCreated(e,t){if(e)return i(e);n.open(t,p,o.mode||g,function _fileCreated(e,r){if(e)return i(e);if(o.discardDescriptor){return n.close(r,function _discardCallback(e){if(e){try{n.unlinkSync(t)}catch(t){if(!isENOENT(t)){e=t}}return i(e)}i(null,t,undefined,_prepareTmpFileRemoveCallback(t,-1,o))})}if(o.detachDescriptor){return i(null,t,r,_prepareTmpFileRemoveCallback(t,-1,o))}i(null,t,r,_prepareTmpFileRemoveCallback(t,r,o))})})}function fileSync(e){var t=_parseArguments(e),r=t[0];const o=r.discardDescriptor||r.detachDescriptor;const i=tmpNameSync(r);var s=n.openSync(i,p,r.mode||g);if(r.discardDescriptor){n.closeSync(s);s=undefined}return{name:i,fd:s,removeCallback:_prepareTmpFileRemoveCallback(i,o?-1:s,r)}}function dir(e,t){var r=_parseArguments(e,t),o=r[0],i=r[1];tmpName(o,function _tmpNameCreated(e,t){if(e)return i(e);n.mkdir(t,o.mode||m,function _dirCreated(e){if(e)return i(e);i(null,t,_prepareTmpDirRemoveCallback(t,o))})})}function dirSync(e){var t=_parseArguments(e),r=t[0];const o=tmpNameSync(r);n.mkdirSync(o,r.mode||m);return{name:o,removeCallback:_prepareTmpDirRemoveCallback(o,r)}}function _removeFileAsync(e,t){const r=function(e){if(e&&!isENOENT(e)){return t(e)}t()};if(0<=e[0])n.close(e[0],function(t){n.unlink(e[1],r)});else n.unlink(e[1],r)}function _removeFileSync(e){try{if(0<=e[0])n.closeSync(e[0])}catch(e){if(!isEBADF(e)&&!isENOENT(e))throw e}finally{try{n.unlinkSync(e[1])}catch(e){if(!isENOENT(e))throw e}}}function _prepareTmpFileRemoveCallback(e,t,r){const n=_prepareRemoveCallback(_removeFileSync,[t,e]);const o=_prepareRemoveCallback(_removeFileAsync,[t,e],n);if(!r.keep)b.unshift(n);return o}function _rimrafRemoveDirWrapper(e,t){a(e,t)}function _rimrafRemoveDirSyncWrapper(e,t){try{return t(null,a.sync(e))}catch(e){return t(e)}}function _prepareTmpDirRemoveCallback(e,t){const r=t.unsafeCleanup?_rimrafRemoveDirWrapper:n.rmdir.bind(n);const o=t.unsafeCleanup?_rimrafRemoveDirSyncWrapper:n.rmdirSync.bind(n);const i=_prepareRemoveCallback(o,e);const s=_prepareRemoveCallback(r,e,i);if(!t.keep)b.unshift(i);return s}function _prepareRemoveCallback(e,t,r){var n=false;return function _cleanupCallback(o){o=o||function(){};if(!n){const i=r||_cleanupCallback;const s=b.indexOf(i);if(s>=0)b.splice(s,1);n=true;if(e.length===1){try{e(t);return o(null)}catch(e){return o(e)}}else return e(t,o)}else return o(new Error("cleanup callback has already been called"))}}function _garbageCollector(){if(!v)return;while(b.length){try{b[0]()}catch(e){}}}function isEBADF(e){return isExpectedError(e,-d,"EBADF")}function isENOENT(e){return isExpectedError(e,-h,"ENOENT")}function isExpectedError(e,t,r){return e.code===t||e.code===r}function isBlank(e){return e===null||e===undefined||!e.trim()}function setGracefulCleanup(){v=true}function _getTmpDir(){return o.tmpdir()}function _is_legacy_listener(e){return(e.name==="_exit"||e.name==="_uncaughtExceptionThrown")&&e.toString().indexOf("_garbageCollector();")>-1}function _safely_install_sigint_listener(){const e=process.listeners(y);const t=[];for(let r=0,n=e.length;r=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}else if(t.indexOf(":")>=0){t.split(":").forEach(function(e){o.unshift(parseFloat(e,10))});t=0;n=1;o.forEach(function(e){t+=e*n;n*=60});return r*t}return r*parseFloat(t,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return s.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.isNegativeZero(e))}e.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},,,,,,,,function(e,t,r){"use strict";const n=r(869);const o=r(622);const i=r(669);const s=r(159);const c=s("10.5.0");const a=e=>c?n.stat(e,{bigint:true}):n.stat(e);const u=e=>c?n.statSync(e,{bigint:true}):n.statSync(e);function getStats(e,t){return Promise.all([a(e),a(t).catch(e=>{if(e.code==="ENOENT")return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}function getStatsSync(e,t){let r;const n=u(e);try{r=u(t)}catch(e){if(e.code==="ENOENT")return{srcStat:n,destStat:null};throw e}return{srcStat:n,destStat:r}}function checkPaths(e,t,r,n){i.callbackify(getStats)(e,t,(o,i)=>{if(o)return n(o);const{srcStat:s,destStat:c}=i;if(c&&areIdentical(s,c)){return n(new Error("Source and destination must not be the same."))}if(s.isDirectory()&&isSrcSubdir(e,t)){return n(new Error(errMsg(e,t,r)))}return n(null,{srcStat:s,destStat:c})})}function checkPathsSync(e,t,r){const{srcStat:n,destStat:o}=getStatsSync(e,t);if(o&&areIdentical(n,o)){throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:n,destStat:o}}function checkParentPaths(e,t,r,i,s){const a=o.resolve(o.dirname(e));const u=o.resolve(o.dirname(r));if(u===a||u===o.parse(u).root)return s();const l=(n,o)=>{if(n){if(n.code==="ENOENT")return s();return s(n)}if(areIdentical(t,o)){return s(new Error(errMsg(e,r,i)))}return checkParentPaths(e,t,u,i,s)};if(c)n.stat(u,{bigint:true},l);else n.stat(u,l)}function checkParentPathsSync(e,t,r,n){const i=o.resolve(o.dirname(e));const s=o.resolve(o.dirname(r));if(s===i||s===o.parse(s).root)return;let c;try{c=u(s)}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,c)){throw new Error(errMsg(e,r,n))}return checkParentPathsSync(e,t,s,n)}function areIdentical(e,t){if(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev){if(c||t.inoe);const n=o.resolve(t).split(o.sep).filter(e=>e);return r.reduce((e,t,r)=>e&&n[r]===t,true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir}},,function(e,t,r){"use strict";const n=r(669);let o;if(typeof n.getSystemErrorName==="function"){e.exports=n.getSystemErrorName}else{try{o=process.binding("uv");if(typeof o.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);o=null}e.exports=(e=>errname(o,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}`}},,,,function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=i(r(87));const c=r(82);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=a+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+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},,,,,,,,,,,,function(e){function getBuild(e,t){const r=t.build?overrideProperties(t.default,t.build.find(t=>e===t.project)):t.default;delete r.project;return manipulateArchiveArtifacts(manipulateProperties(r),e)}function overrideProperties(e,t,r=false){const n={...e};const o={...t};Object.entries(n).filter(([e])=>o[e]).forEach(([e,t])=>{if(typeof t==="object"){n[e]=overrideProperties(n[e],o[e],r||o.merge&&o.merge.includes(e))}else{n[e]=r||o.merge&&o.merge.includes(e)?mergeElements(n[e],o[e],e):o[e]}});Object.keys(o).filter(e=>!n[e]).forEach(e=>n[e]=o[e]);return n}function mergeElements(e,t){const r=typeof e==="string"?[...e.split("\n")]:[...e];const n=typeof t==="string"?[...t.split("\n")]:[...t];return[...r,...n]}function manipulateProperties(e){const t={...e};Object.entries(t).forEach(([e,r])=>{if(typeof r==="object"&&!Array.isArray(r)){t[e]=manipulateProperties(t[e])}else{t[e]=typeof r==="string"&&r.includes("\n")?r.split("\n").filter(e=>e):r}});return t}function manipulateArchiveArtifacts(e,t){const r=e["archive-artifacts"];if(r){r["if-no-files-found"]=e["archive-artifacts"]["if-no-files-found"]?r["if-no-files-found"]:"warn";r.dependencies=r.dependencies?r.dependencies:"none";r.name=r.name?r.name:t.includes("/")?t.split("/")[1]:t;r.paths=treatArchiveArtifactsPath(r.path)}return e}function treatArchiveArtifactsPath(e){return(Array.isArray(e)?e:e.split("\n")).filter(e=>e).reduce((e,t)=>{e.push(convertPathExpressionToPath(t));return e},[])}function convertPathExpressionToPath(e){const t=e.match(/([^@]*)@?(always|success|failure)?/);return t?{path:t[1],on:t[2]?t[2]:"success"}:e}function treatProject(e,t){return{build:getBuild(e,t)}}e.exports={treatProject:treatProject}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(796);var o=r(12);var i=r(753);var s=r(898);var c=r(68);function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t)n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=(async()=>({type:"unauthenticated"}))}else{const r=c.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const r=e.authStrategy(Object.assign({request:this.request},e.auth));t.wrap("request",r.hook);this.auth=r}const u=this.constructor;u.plugins.forEach(t=>{Object.assign(this,t(this,e))})}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(e,...t){var r;if(e instanceof Array){console.warn(["Passing an array of plugins to Octokit.plugin() has been deprecated.","Instead of:"," Octokit.plugin([plugin1, plugin2, ...])","Use:"," Octokit.plugin(plugin1, plugin2, ...)"].join("\n"))}const n=this.plugins;let o=[...e instanceof Array?e:[e],...t];const i=(r=class extends(this){},r.plugins=n.concat(o.filter(e=>!n.includes(e))),r);return i}}Octokit.VERSION=a;Octokit.plugins=[];t.Octokit=Octokit},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(870);class HttpManager{constructor(e,t){if(e<1){throw new Error("There must be at least one client")}this.userAgent=t;this.clients=new Array(e).fill(n.createHttpClient(t))}getClient(e){return this.clients[e]}disposeAndReplaceClient(e){this.clients[e].dispose();this.clients[e]=n.createHttpClient(this.userAgent)}disposeAndReplaceAllClients(){for(const[e]of this.clients.entries()){this.disposeAndReplaceClient(e)}}}t.HttpManager=HttpManager},function(e,t,r){var n=r(49);var o=r(562);var i=r(747);var s=function(){};var c=/^v?\.0/.test(process.version);var a=function(e){return typeof e==="function"};var u=function(e){if(!c)return false;if(!i)return false;return(e instanceof(i.ReadStream||s)||e instanceof(i.WriteStream||s))&&a(e.close)};var l=function(e){return e.setHeader&&a(e.abort)};var f=function(e,t,r,i){i=n(i);var c=false;e.on("close",function(){c=true});o(e,{readable:t,writable:r},function(e){if(e)return i(e);c=true;i()});var f=false;return function(t){if(c)return;if(f)return;f=true;if(u(e))return e.close(s);if(l(e))return e.abort();if(a(e.destroy))return e.destroy();i(t||new Error("stream was destroyed"))}};var p=function(e){e()};var d=function(e,t){return e.pipe(t)};var h=function(){var e=Array.prototype.slice.call(arguments);var t=a(e[e.length-1]||s)&&e.pop()||s;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(o,i){var s=i0;return f(o,s,c,function(e){if(!r)r=e;if(e)n.forEach(p);if(s)return;n.forEach(p);t(r)})});return e.reduce(d)};e.exports=h},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(794));var o=_interopDefault(r(605));var i=_interopDefault(r(835));var s=_interopDefault(r(211));var c=_interopDefault(r(761));const a=n.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const o=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},o=r.size;let i=o===undefined?0:o;var s=r.timeout;let c=s===undefined?0:s;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[p]={body:e,disturbed:false,error:null};this.size=i;this.timeout=c;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[p].error=r})}}Body.prototype={get body(){return this[p].body},get bodyUsed(){return this[p].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()}),{[u]: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[p].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[p].disturbed=true;if(this[p].error){return Body.Promise.reject(this[p].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 o=0;let i=false;return new Body.Promise(function(n,s){let c;if(e.timeout){c=setTimeout(function(){i=true;s(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"){i=true;s(t)}else{s(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(i||t===null){return}if(e.size&&o+t.length>e.size){i=true;s(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}o+=t.length;r.push(t)});t.on("end",function(){if(i){return}clearTimeout(c);try{n(Buffer.concat(r,o))}catch(t){s(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof f!=="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 o,i;if(r){o=/charset=([^;]*)/i.exec(r)}i=e.slice(0,1024).toString();if(!o&&i){o=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[g]=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[g],e);if(t===undefined){return null}return this[g][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[g]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[g][t].join(", ")}:function(t){return[t.toLowerCase(),e[g][t].join(", ")]})}const w=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(y);r[w]={target:e,kind:t,index:0};return r}const y=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==y){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[w];const t=e.target,r=e.kind,n=e.index;const o=getHeaders(t,r);const i=o.length;if(n>=i){return{value:undefined,done:true}}this[w].index=n+1;return{value:o[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(y,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[g]);const r=find(e[g],"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(h.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(m.test(n)){continue}if(t[g][r]===undefined){t[g][r]=[n]}else{t[g][r].push(n)}}}else if(!m.test(e[r])){t[g][r]=[e[r]]}}return t}const b=Symbol("Response internals");const v=o.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[b]={url:t.url,status:r,statusText:t.statusText||v[r],headers:n,counter:t.counter}}get url(){return this[b].url||""}get status(){return this[b].status}get ok(){return this[b].status>=200&&this[b].status<300}get redirected(){return this[b].counter>0}get statusText(){return this[b].statusText}get headers(){return this[b].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 E=Symbol("Request internals");const T=i.parse;const S=i.format;const _="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[E]==="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=T(e.href)}else{r=T(`${e}`)}e={}}else{r=T(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 o=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,o,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const i=new Headers(t.headers||e.headers||{});if(o!=null&&!i.has("Content-Type")){const e=extractContentType(o);if(e){i.append("Content-Type",e)}}let s=isRequest(e)?e.signal:null;if("signal"in t)s=t.signal;if(s!=null&&!isAbortSignal(s)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[E]={method:n,redirect:t.redirect||e.redirect||"follow",headers:i,parsedURL:r,signal:s};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[E].method}get url(){return S(this[E].parsedURL)}get headers(){return this[E].headers}get redirect(){return this[E].redirect}get signal(){return this[E].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[E].parsedURL;const r=new Headers(e[E].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&&!_){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let o=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){o="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){o=String(t)}}if(o){r.set("Content-Length",o)}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 i=e.agent;if(typeof i==="function"){i=i(t)}if(!r.has("Connection")&&!i){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:i})}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 O=n.PassThrough;const A=i.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,i){const a=new Request(e,t);const u=getNodeRequestOptions(a);const l=(u.protocol==="https:"?s:o).request;const f=a.signal;let p=null;const d=function abort(){let e=new AbortError("The user aborted a request.");i(e);if(a.body&&a.body instanceof n.Readable){a.body.destroy(e)}if(!p||!p.body)return;p.body.emit("error",e)};if(f&&f.aborted){d();return}const h=function abortAndFinalize(){d();finalize()};const m=l(u);let g;if(f){f.addEventListener("abort",h)}function finalize(){m.abort();if(f)f.removeEventListener("abort",h);clearTimeout(g)}if(a.timeout){m.once("socket",function(e){g=setTimeout(function(){i(new FetchError(`network timeout at: ${a.url}`,"request-timeout"));finalize()},a.timeout)})}m.on("error",function(e){i(new FetchError(`request to ${a.url} failed, reason: ${e.message}`,"system",e));finalize()});m.on("response",function(e){clearTimeout(g);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const o=n===null?null:A(a.url,n);switch(a.redirect){case"error":i(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${a.url}`,"no-redirect"));finalize();return;case"manual":if(o!==null){try{t.set("Location",o)}catch(e){i(e)}}break;case"follow":if(o===null){break}if(a.counter>=a.follow){i(new FetchError(`maximum redirect reached at: ${a.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(a.headers),follow:a.follow,counter:a.counter+1,agent:a.agent,compress:a.compress,method:a.method,body:a.body,signal:a.signal,timeout:a.timeout,size:a.size};if(e.statusCode!==303&&a.body&&getTotalBytes(a)===null){i(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)&&a.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(o,n)));finalize();return}}e.once("end",function(){if(f)f.removeEventListener("abort",h)});let n=e.pipe(new O);const o={url:a.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:a.size,timeout:a.timeout,counter:a.counter};const s=t.get("Content-Encoding");if(!a.compress||a.method==="HEAD"||s===null||e.statusCode===204||e.statusCode===304){p=new Response(n,o);r(p);return}const u={flush:c.Z_SYNC_FLUSH,finishFlush:c.Z_SYNC_FLUSH};if(s=="gzip"||s=="x-gzip"){n=n.pipe(c.createGunzip(u));p=new Response(n,o);r(p);return}if(s=="deflate"||s=="x-deflate"){const t=e.pipe(new O);t.once("data",function(e){if((e[0]&15)===8){n=n.pipe(c.createInflate())}else{n=n.pipe(c.createInflateRaw())}p=new Response(n,o);r(p)});return}if(s=="br"&&typeof c.createBrotliDecompress==="function"){n=n.pipe(c.createBrotliDecompress());p=new Response(n,o);r(p);return}p=new Response(n,o);r(p)});writeToStream(m,a)})}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},,,function(e,t,r){"use strict";var n=r(740);var o=r(556);var i=r(93);var s=r(723);var c=r(910);var a=Object.prototype.hasOwnProperty;var u=1;var l=2;var f=3;var p=4;var d=1;var h=2;var m=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var w=/[\x85\u2028\u2029]/;var y=/[,\[\]\{\}]/;var b=/^(?:!|!!|![a-z\-]+!)$/i;var v=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var E=new Array(256);var T=new Array(256);for(var S=0;S<256;S++){E[S]=simpleEscapeSequence(S)?1:0;T[S]=simpleEscapeSequence(S)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||c;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(e,t){return new o(t,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var _={YAML:function handleYamlDirective(e,t,r){var n,o,i;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}o=parseInt(n[1],10);i=parseInt(n[2],10);if(o!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=i<2;if(i!==1&&i!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,o;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];o=r[1];if(!b.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!v.test(o)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}e.tagMap[n]=o}};function captureSegment(e,t,r,n){var o,i,s,c;if(t1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,o,i,s,c,a,u,l,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||r&&is_FLOW_INDICATOR(o)){return false}}e.kind="scalar";e.result="";i=s=e.position;c=false;while(d!==0){if(d===58){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||r&&is_FLOW_INDICATOR(o)){break}}else if(d===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){a=e.line;u=e.lineStart;l=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){c=true;d=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=a;e.lineStart=u;e.lineIndent=l;break}}if(c){captureSegment(e,i,s,false);writeFoldedLines(e,e.line-a);i=s=e.position;c=false}if(!is_WHITE_SPACE(d)){s=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,i,s,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,t){var r,n,o;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=o=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;o=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,o,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=o=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;o=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,n,o,i,s,c;c=e.input.charCodeAt(e.position);if(c!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((c=e.input.charCodeAt(e.position))!==0){if(c===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(c===92){captureSegment(e,r,e.position,true);c=e.input.charCodeAt(++e.position);if(is_EOL(c)){skipSeparationSpace(e,false,t)}else if(c<256&&E[c]){e.result+=T[c];e.position++}else if((s=escapedHexLen(c))>0){o=s;i=0;for(;o>0;o--){c=e.input.charCodeAt(++e.position);if((s=fromHexCode(c))>=0){i=(i<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(i);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(c)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,o=e.tag,i,s=e.anchor,c,a,l,f,p,d={},h,m,g,w;w=e.input.charCodeAt(e.position);if(w===91){a=93;p=false;i=[]}else if(w===123){a=125;p=true;i={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=i}w=e.input.charCodeAt(++e.position);while(w!==0){skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if(w===a){e.position++;e.tag=o;e.anchor=s;e.kind=p?"mapping":"sequence";e.result=i;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}m=h=g=null;l=f=false;if(w===63){c=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(c)){l=f=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;composeNode(e,t,u,false,true);m=e.tag;h=e.result;skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if((f||e.line===n)&&w===58){l=true;w=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,u,false,true);g=e.result}if(p){storeMappingPair(e,i,d,m,h,g)}else if(l){i.push(storeMappingPair(e,null,d,m,h,g))}else{i.push(h)}skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if(w===44){r=true;w=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,o,i=d,s=false,c=false,a=t,u=0,l=false,f,p;p=e.input.charCodeAt(e.position);if(p===124){o=false}else if(p===62){o=true}else{return false}e.kind="scalar";e.result="";while(p!==0){p=e.input.charCodeAt(++e.position);if(p===43||p===45){if(d===i){i=p===43?m:h}else{throwError(e,"repeat of a chomping mode identifier")}}else if((f=fromDecimalCode(p))>=0){if(f===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!c){a=t+f-1;c=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(p)){do{p=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(p));if(p===35){do{p=e.input.charCodeAt(++e.position)}while(!is_EOL(p)&&p!==0)}}while(p!==0){readLineBreak(e);e.lineIndent=0;p=e.input.charCodeAt(e.position);while((!c||e.lineIndenta){a=e.lineIndent}if(is_EOL(p)){u++;continue}if(e.lineIndentt)&&a!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(composeNode(e,t,p,true,o)){if(g){h=e.result}else{m=e.result}}if(!g){storeMappingPair(e,u,f,d,h,m,i,s);d=h=m=null}skipSeparationSpace(e,true,-1);y=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&y!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndentt){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(g=0,w=e.implicitTypes.length;g tag; it should be "'+y.kind+'", not "'+e.kind+'"')}if(!y.resolve(e.result)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=y.construct(e.result);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else{throwError(e,"unknown tag !<"+e.tag+">")}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||m}function readDocument(e){var t=e.position,r,n,o,i=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap={};e.anchorMap={};while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}i=true;s=e.input.charCodeAt(++e.position);r=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);o=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;r=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}o.push(e.input.slice(r,e.position))}if(s!==0)readLineBreak(e);if(a.call(_,n)){_[n](e,n,o)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(i){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&w.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position&|;, *?])/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},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 o=_interopDefault(r(49));const i=o(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(){i(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const o=Object.assign({},r.request);if(r.request.headers.authorization){o.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=o}}t.RequestError=RequestError},,,function(e,t,r){var n=r(794).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var o=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var i=Object.keys(r);for(var s=0,c=i.length;sthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){o.emit("error",e);o.readable=false;return}o.fd=t;o.emit("open",t);o._read()})}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var o=Object.keys(r);for(var i=0,s=o.length;i= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},,,function(e,t,r){"use strict";const n=r(666);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const c=r(431);const a=r(102);const u=r(82);const l=i(r(87));const f=i(r(622));const p=r(742);var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${l.EOL}${r}${l.EOL}${t}`;a.issueCommand("ENV",n)}else{c.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){c.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){a.issueCommand("PATH",e)}else{c.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${f.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter(e=>e!=="");return r}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const o=getInput(e,t);if(r.includes(o))return true;if(n.includes(o))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);c.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){c.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=d.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){c.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){c.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){c.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){c.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){c.issue("group",e)}t.startGroup=startGroup;function endGroup(){c.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){c.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,function*(){return yield p.OidcClient.getIDToken(e)})}t.getIDToken=getIDToken},,function(e,t,r){"use strict";const n=r(149);const o=r(900);const i=r(849);e.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:o.createLink,createLinkSync:o.createLinkSync,ensureLink:o.createLink,ensureLinkSync:o.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}},,function(e,t,r){"use strict";const n=r(598);const o=r(622);const i=r(357);const s=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(t=>{e[t]=e[t]||n[t];t=t+"Sync";e[t]=e[t]||n[t]});e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let n=0;if(typeof t==="function"){r=t;t={}}i(e,"rimraf: missing path");i.strictEqual(typeof e,"string","rimraf: path should be a string");i.strictEqual(typeof r,"function","rimraf: callback function required");i(t,"rimraf: invalid options argument provided");i.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,function CB(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&nrimraf_(e,t,CB),r)}if(o.code==="ENOENT")o=null}r(o)})}function rimraf_(e,t,r){i(e);i(t);i(typeof r==="function");t.lstat(e,(n,o)=>{if(n&&n.code==="ENOENT"){return r(null)}if(n&&n.code==="EPERM"&&s){return fixWinEPERM(e,t,n,r)}if(o&&o.isDirectory()){return rmdir(e,t,n,r)}t.unlink(e,n=>{if(n){if(n.code==="ENOENT"){return r(null)}if(n.code==="EPERM"){return s?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r)}if(n.code==="EISDIR"){return rmdir(e,t,n,r)}}return r(n)})})}function fixWinEPERM(e,t,r,n){i(e);i(t);i(typeof n==="function");t.chmod(e,438,o=>{if(o){n(o.code==="ENOENT"?null:r)}else{t.stat(e,(o,i)=>{if(o){n(o.code==="ENOENT"?null:r)}else if(i.isDirectory()){rmdir(e,t,r,n)}else{t.unlink(e,n)}})}})}function fixWinEPERMSync(e,t,r){let n;i(e);i(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(n.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,n){i(e);i(t);i(typeof n==="function");t.rmdir(e,o=>{if(o&&(o.code==="ENOTEMPTY"||o.code==="EEXIST"||o.code==="EPERM")){rmkids(e,t,n)}else if(o&&o.code==="ENOTDIR"){n(r)}else{n(o)}})}function rmkids(e,t,r){i(e);i(t);i(typeof r==="function");t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length;let c;if(s===0)return t.rmdir(e,r);i.forEach(n=>{rimraf(o.join(e,n),t,n=>{if(c){return}if(n)return r(c=n);if(--s===0){t.rmdir(e,r)}})})})}function rimrafSync(e,t){let r;t=t||{};defaults(t);i(e,"rimraf: missing path");i.strictEqual(typeof e,"string","rimraf: path should be a string");i(t,"rimraf: missing options");i.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&s){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return s?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){i(e);i(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR"){throw r}else if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"){rmkidsSync(e,t)}else if(n.code!=="ENOENT"){throw n}}}function rmkidsSync(e,t){i(e);i(t);t.readdirSync(e).forEach(r=>rimrafSync(o.join(e,r),t));if(s){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch{}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamedParameters:{name:"secret_name"}}],createOrUpdateSecretForRepo:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamed:["actions","createOrUpdateRepoSecret"],renamedParameters:{name:"secret_name"}}],createRegistrationToken:["POST /repos/{owner}/{repo}/actions/runners/registration-token",{},{renamed:["actions","createRegistrationTokenForRepo"]}],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveToken:["POST /repos/{owner}/{repo}/actions/runners/remove-token",{},{renamed:["actions","createRemoveTokenForRepo"]}],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamedParameters:{name:"secret_name"}}],deleteSecretFromRepo:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamed:["actions","deleteRepoSecret"],renamedParameters:{name:"secret_name"}}],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowJobLogs:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs",{},{renamed:["actions","downloadJobLogsForWorkflowRun"]}],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key",{},{renamed:["actions","getRepoPublicKey"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamedParameters:{name:"secret_name"}}],getSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamed:["actions","getRepoSecret"],renamedParameters:{name:"secret_name"}}],getSelfHostedRunner:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}",{},{renamed:["actions","getSelfHostedRunnerForRepo"]}],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowJob:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}",{},{renamed:["actions","getJobForWorkflowRun"]}],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listDownloadsForSelfHostedRunnerApplication:["GET /repos/{owner}/{repo}/actions/runners/downloads",{},{renamed:["actions","listRunnerApplicationsForRepo"]}],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflowRuns:["GET /repos/{owner}/{repo}/actions/runs",{},{renamed:["actions","listWorkflowRunsForRepo"]}],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSecretsForRepo:["GET /repos/{owner}/{repo}/actions/secrets",{},{renamed:["actions","listRepoSecrets"]}],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowJobLogs:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs",{},{renamed:["actions","downloadWorkflowJobLogs"]}],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs",{},{renamed:["actions","downloadWorkflowRunLogs"]}],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelfHostedRunner:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}",{},{renamed:["actions","deleteSelfHostedRunnerFromRepo"]}],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],checkStarringRepo:["GET /user/starred/{owner}/{repo}",{},{renamed:["activity","checkRepoIsStarredByAuthenticatedUser"]}],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscription:["PUT /notifications",{},{renamed:["activity","getThreadSubscriptionForAuthenticatedUser"]}],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listEventsForOrg:["GET /users/{username}/events/orgs/{org}",{},{renamed:["activity","listOrgEventsForAuthenticatedUser"]}],listEventsForUser:["GET /users/{username}/events",{},{renamed:["activity","listEventsForAuthenticatedUser"]}],listFeeds:["GET /feeds",{},{renamed:["activity","getFeeds"]}],listNotifications:["GET /notifications",{},{renamed:["activity","listNotificationsForAuthenticatedUser"]}],listNotificationsForAuthenticatedUser:["GET /notifications"],listNotificationsForRepo:["GET /repos/{owner}/{repo}/notifications",{},{renamed:["activity","listRepoNotificationsForAuthenticatedUser"]}],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForOrg:["GET /orgs/{org}/events",{},{renamed:["activity","listPublicOrgEvents"]}],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markAsRead:["PUT /notifications",{},{renamed:["activity","markNotificationsAsRead"]}],markNotificationsAsRead:["PUT /notifications"],markNotificationsAsReadForRepo:["PUT /repos/{owner}/{repo}/notifications",{},{renamed:["activity","markRepoNotificationsAsRead"]}],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepo:["PUT /user/starred/{owner}/{repo}",{},{renamed:["activity","starRepoForAuthenticatedUser"]}],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepo:["DELETE /user/starred/{owner}/{repo}",{},{renamed:["activity","unstarRepoForAuthenticatedUser"]}],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{mediaType:{previews:["machine-man"]}}],checkAccountIsAssociatedWithAny:["GET /marketplace_listing/accounts/{account_id}",{},{renamed:["apps","getSubscriptionPlanForAccount"]}],checkAccountIsAssociatedWithAnyStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}",{},{renamed:["apps","getSubscriptionPlanForAccountStubbed"]}],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens",{mediaType:{previews:["machine-man"]}}],createInstallationToken:["POST /app/installations/{installation_id}/access_tokens",{mediaType:{previews:["machine-man"]}},{renamed:["apps","createInstallationAccessToken"]}],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}",{mediaType:{previews:["machine-man"]}}],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app",{mediaType:{previews:["machine-man"]}}],getBySlug:["GET /apps/{app_slug}",{mediaType:{previews:["machine-man"]}}],getInstallation:["GET /app/installations/{installation_id}",{mediaType:{previews:["machine-man"]}}],getOrgInstallation:["GET /orgs/{org}/installation",{mediaType:{previews:["machine-man"]}}],getRepoInstallation:["GET /repos/{owner}/{repo}/installation",{mediaType:{previews:["machine-man"]}}],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation",{mediaType:{previews:["machine-man"]}}],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listAccountsUserOrOrgOnPlan:["GET /marketplace_listing/plans/{plan_id}/accounts",{},{renamed:["apps","listAccountsForPlan"]}],listAccountsUserOrOrgOnPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",{},{renamed:["apps","listAccountsForPlanStubbed"]}],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories",{mediaType:{previews:["machine-man"]}}],listInstallations:["GET /app/installations",{mediaType:{previews:["machine-man"]}}],listInstallationsForAuthenticatedUser:["GET /user/installations",{mediaType:{previews:["machine-man"]}}],listMarketplacePurchasesForAuthenticatedUser:["GET /user/marketplace_purchases",{},{renamed:["apps","listSubscriptionsForAuthenticatedUser"]}],listMarketplacePurchasesForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed",{},{renamed:["apps","listSubscriptionsForAuthenticatedUserStubbed"]}],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listRepos:["GET /installation/repositories",{mediaType:{previews:["machine-man"]}},{renamed:["apps","listReposAccessibleToInstallation"]}],listReposAccessibleToInstallation:["GET /installation/repositories",{mediaType:{previews:["machine-man"]}}],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{mediaType:{previews:["machine-man"]}}],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],revokeInstallationToken:["DELETE /installation/token",{},{renamed:["apps","revokeInstallationAccessToken"]}],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs",{mediaType:{previews:["antiope"]}}],createSuite:["POST /repos/{owner}/{repo}/check-suites",{mediaType:{previews:["antiope"]}}],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}",{mediaType:{previews:["antiope"]}}],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}",{mediaType:{previews:["antiope"]}}],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",{mediaType:{previews:["antiope"]}}],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs",{mediaType:{previews:["antiope"]}}],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",{mediaType:{previews:["antiope"]}}],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites",{mediaType:{previews:["antiope"]}}],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest",{mediaType:{previews:["antiope"]}}],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences",{mediaType:{previews:["antiope"]}}],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}",{mediaType:{previews:["antiope"]}}]},codeScanning:{getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_id}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],listConductCodes:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}},{renamed:["codesOfConduct","getAllCodesOfConduct"]}]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listPublicForUser:["GET /users/{username}/gists",{},{renamed:["gists","listForUser"]}],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"],listTemplates:["GET /gitignore/templates",{},{renamed:["gitignore","getAllTemplates"]}]},interactions:{addOrUpdateRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}},{renamed:["interactions","setRestrictionsForOrg"]}],addOrUpdateRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}},{renamed:["interactions","setRestrictionsForRepo"]}],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkAssignee:["GET /repos/{owner}/{repo}/assignees/{assignee}",{},{renamed:["issues","checkUserCanBeAssigned"]}],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],listMilestonesForRepo:["GET /repos/{owner}/{repo}/milestones",{},{renamed:["issues","listMilestones"]}],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],removeLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels",{},{renamed:["issues","removeAllLabels"]}],replaceAllLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels",{},{renamed:["issues","setLabels"]}],replaceLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels",{},{renamed:["issues","replaceAllLabels"]}],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"],listCommonlyUsed:["GET /licenses",{},{renamed:["licenses","getAllCommonlyUsed"]}]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportProgress:["GET /repos/{owner}/{repo}/import",{},{renamed:["migrations","getImportStatus"]}],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{addOrUpdateMembership:["PUT /orgs/{org}/memberships/{username}",{},{renamed:["orgs","setMembershipForUser"]}],blockUser:["PUT /orgs/{org}/blocks/{username}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembership:["GET /orgs/{org}/members/{username}",{},{renamed:["orgs","checkMembershipForUser"]}],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembership:["GET /orgs/{org}/public_members/{username}",{},{renamed:["orgs","checkPublicMembershipForUser"]}],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],concealMembership:["DELETE /orgs/{org}/public_members/{username}",{},{renamed:["orgs","removePublicMembershipForAuthenticatedUser"]}],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createHook:["POST /orgs/{org}/hooks",{},{renamed:["orgs","createWebhook"]}],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteHook:["DELETE /orgs/{org}/hooks/{hook_id}",{},{renamed:["orgs","deleteWebhook"]}],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getHook:["GET /orgs/{org}/hooks/{hook_id}",{},{renamed:["orgs","getWebhook"]}],getMembership:["GET /orgs/{org}/memberships/{username}",{},{renamed:["orgs","getMembershipForUser"]}],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations",{mediaType:{previews:["machine-man"]}}],listBlockedUsers:["GET /orgs/{org}/blocks"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listHooks:["GET /orgs/{org}/hooks",{},{renamed:["orgs","listWebhooks"]}],listInstallations:["GET /orgs/{org}/installations",{mediaType:{previews:["machine-man"]}},{renamed:["orgs","listAppInstallations"]}],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMemberships:["GET /user/memberships/orgs",{},{renamed:["orgs","listMembershipsForAuthenticatedUser"]}],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingHook:["POST /orgs/{org}/hooks/{hook_id}/pings",{},{renamed:["orgs","pingWebhook"]}],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],publicizeMembership:["PUT /orgs/{org}/public_members/{username}",{},{renamed:["orgs","setPublicMembershipForAuthenticatedUser"]}],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembership:["DELETE /orgs/{org}/memberships/{username}",{},{renamed:["orgs","removeMembershipForUser"]}],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateHook:["PATCH /orgs/{org}/hooks/{hook_id}",{},{renamed:["orgs","updateWebhook"]}],updateMembership:["PATCH /user/memberships/orgs/{org}",{},{renamed:["orgs","updateMembershipForAuthenticatedUser"]}],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],reviewUserPermissionLevel:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}},{renamed:["projects","getPermissionForUser"]}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments",{},{renamed:["pulls","createReviewComment"]}],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],createReviewCommentReply:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies",{},{renamed:["pulls","createReplyForReviewComment"]}],createReviewRequest:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",{},{renamed:["pulls","requestReviewers"]}],deleteComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}",{},{renamed:["pulls","deleteReviewComment"]}],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],deleteReviewRequest:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",{},{renamed:["pulls","removeRequestedReviewers"]}],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}",{},{renamed:["pulls","getReviewComment"]}],getCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",{},{renamed:["pulls","listCommentsForReview"]}],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",{},{renamed:["pulls","listReviewComments"]}],listCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments",{},{renamed:["pulls","listReviewCommentsForRepo"]}],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviewRequests:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",{},{renamed:["pulls","listRequestedReviewers"]}],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}",{},{renamed:["pulls","updateReviewComment"]}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],delete:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{renamed:["reactions","deleteLegacy"]}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.reactions.deleteLegacy() is deprecated, see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addDeployKey:["POST /repos/{owner}/{repo}/keys",{},{renamed:["repos","createDeployKey"]}],addProtectedBranchAdminEnforcement:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",{},{renamed:["repos","setAdminBranchProtection"]}],addProtectedBranchAppRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps",renamed:["repos","addAppAccessRestrictions"]}],addProtectedBranchRequiredSignatures:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}},{renamed:["repos","createCommitSignatureProtection"]}],addProtectedBranchRequiredStatusChecksContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts",renamed:["repos","addStatusCheckContexts"]}],addProtectedBranchTeamRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams",renamed:["repos","addTeamAccessRestrictions"]}],addProtectedBranchUserRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users",renamed:["repos","addUserAccessRestrictions"]}],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createHook:["POST /repos/{owner}/{repo}/hooks",{},{renamed:["repos","createWebhook"]}],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateFile:["PUT /repos/{owner}/{repo}/contents/{path}",{},{renamed:["repos","createOrUpdateFileContents"]}],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createStatus:["POST /repos/{owner}/{repo}/statuses/{sha}",{},{renamed:["repos","createCommitStatus"]}],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDownload:["DELETE /repos/{owner}/{repo}/downloads/{download_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteHook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}",{},{renamed:["repos","deleteWebhook"]}],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disablePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}},{renamed:["repos","deletePagesSite"]}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/{archive_format}/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enablePagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}},{renamed:["repos","createPagesSite"]}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getArchiveLink:["GET /repos/{owner}/{repo}/{archive_format}/{ref}",{},{renamed:["repos","downloadArchive"]}],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContents:["GET /repos/{owner}/{repo}/contents/{path}",{},{renamed:["repos","getContent"]}],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getDownload:["GET /repos/{owner}/{repo}/downloads/{download_id}"],getHook:["GET /repos/{owner}/{repo}/hooks/{hook_id}",{},{renamed:["repos","getWebhook"]}],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getProtectedBranchAdminEnforcement:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",{},{renamed:["repos","getAdminBranchProtection"]}],getProtectedBranchPullRequestReviewEnforcement:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",{},{renamed:["repos","getPullRequestReviewProtection"]}],getProtectedBranchRequiredSignatures:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}},{renamed:["repos","getCommitSignatureProtection"]}],getProtectedBranchRequiredStatusChecks:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","getStatusChecksProtection"]}],getProtectedBranchRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions",{},{renamed:["repos","getAccessRestrictions"]}],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],list:["GET /user/repos",{},{renamed:["repos","listForAuthenticatedUser"]}],listAssetsForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/assets",{},{renamed:["repos","listReleaseAssets"]}],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitComments:["GET /repos/{owner}/{repo}/comments",{},{renamed:["repos","listCommitCommentsForRepo"]}],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listDownloads:["GET /repos/{owner}/{repo}/downloads"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listHooks:["GET /repos/{owner}/{repo}/hooks",{},{renamed:["repos","listWebhooks"]}],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listProtectedBranchRequiredStatusChecksContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{renamed:["repos","getAllStatusCheckContexts"]}],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses",{},{renamed:["repos","listCommitStatusesForRef"]}],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}},{renamed:["repos","getAllTopics"]}],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingHook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings",{},{renamed:["repos","pingWebhook"]}],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection",{},{renamed:["repos","deleteBranchProtection"]}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}",{},{renamed:["repos","deleteDeployKey"]}],removeProtectedBranchAdminEnforcement:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",{},{renamed:["repos","deleteAdminBranchProtection"]}],removeProtectedBranchAppRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps",renamed:["repos","removeAppAccessRestrictions"]}],removeProtectedBranchPullRequestReviewEnforcement:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",{},{renamed:["repos","deletePullRequestReviewProtection"]}],removeProtectedBranchRequiredSignatures:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}},{renamed:["repos","deleteCommitSignatureProtection"]}],removeProtectedBranchRequiredStatusChecks:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","removeStatusChecksProtection"]}],removeProtectedBranchRequiredStatusChecksContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts",renamed:["repos","removeStatusCheckContexts"]}],removeProtectedBranchRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions",{},{renamed:["repos","deleteAccessRestrictions"]}],removeProtectedBranchTeamRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams",renamed:["repos","removeTeamAccessRestrictions"]}],removeProtectedBranchUserRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users",renamed:["repos","removeUserAccessRestrictions"]}],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],replaceProtectedBranchAppRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps",renamed:["repos","setAppAccessRestrictions"]}],replaceProtectedBranchRequiredStatusChecksContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts",renamed:["repos","setStatusCheckContexts"]}],replaceProtectedBranchTeamRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams",renamed:["repos","setTeamAccessRestrictions"]}],replaceProtectedBranchUserRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users",renamed:["repos","setUserAccessRestrictions"]}],replaceTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}},{renamed:["repos","replaceAllTopics"]}],requestPageBuild:["POST /repos/{owner}/{repo}/pages/builds",{},{renamed:["repos","requestPagesBuild"]}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],retrieveCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile",{},{renamed:["repos","getCommunityProfileMetrics"]}],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushHook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests",{},{renamed:["repos","testPushWebhook"]}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateHook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}",{},{renamed:["repos","updateWebhook"]}],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateProtectedBranchPullRequestReviewEnforcement:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",{},{renamed:["repos","updatePullRequestReviewProtection"]}],updateProtectedBranchRequiredStatusChecks:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusChecksProtection"]}],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateMembershipInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}",{},{renamed:["teams","addOrUpdateMembershipForUserInOrg"]}],addOrUpdateProjectInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}},{renamed:["teams","addOrUpdateProjectPermissionsInOrg"]}],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",{},{renamed:["teams","addOrUpdateRepoPermissionsInOrg"]}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkManagesRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",{},{renamed:["teams","checkPermissionsForRepoInOrg"]}],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],getMembershipInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}",{},{renamed:["teams","getMembershipForUserInOrg"]}],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeMembershipInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}",{},{renamed:["teams","removeMembershipForUserInOrg"]}],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],reviewProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}},{renamed:["teams","checkPermissionsForProjectInOrg"]}],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],addEmails:["POST /user/emails",{},{renamed:["users","addEmailsForAuthenticated"]}],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowing:["GET /user/following/{username}",{},{renamed:["users","checkPersonIsFollowedByAuthenticated"]}],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKey:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticated"]}],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicKey:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticated"]}],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteEmails:["DELETE /user/emails",{},{renamed:["users","deleteEmailsForAuthenticated"]}],deleteGpgKey:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticated"]}],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicKey:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticated"]}],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKey:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticated"]}],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicKey:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticated"]}],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlocked:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticated"]}],listBlockedByAuthenticated:["GET /user/blocks"],listEmails:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticated"]}],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForAuthenticatedUser:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticated"]}],listFollowingForUser:["GET /users/{username}/following"],listGpgKeys:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticated"]}],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmails:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeys:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticated"]}],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],togglePrimaryEmailVisibility:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticated"]}],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};const n="3.17.0";function endpointsToMethods(e,t){const r={};for(const[n,o]of Object.entries(t)){for(const[t,i]of Object.entries(o)){const[o,s,c]=i;const[a,u]=o.split(/ /);const l=Object.assign({method:a,url:u},s);if(!r[n]){r[n]={}}const f=r[n];if(c){f[t]=decorate(e,n,t,l,c);continue}f[t]=e.request.defaults(l)}}return r}function decorate(e,t,r,n,o){const i=e.request.defaults(n);function withDecorations(...n){let s=i.endpoint.merge(...n);if(o.mapToData){s=Object.assign({},s,{data:s[o.mapToData],[o.mapToData]:undefined});return i(s)}if(o.renamed){const[n,i]=o.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${i}()`)}if(o.deprecated){e.log.warn(o.deprecated)}if(o.renamedParameters){const s=i.endpoint.merge(...n);for(const[n,i]of Object.entries(o.renamedParameters)){if(n in s){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${i}" instead`);if(!(i in s)){s[i]=s[n]}delete s[n]}}return i(s)}return i(...n)}return Object.assign(withDecorations,i)}function restEndpointMethods(e){return endpointsToMethods(e,r)}restEndpointMethods.VERSION=n;t.restEndpointMethods=restEndpointMethods},,function(e,t,r){const{spawn:n}=r(129);var o=r(357);const{TimeoutError:i,logger:s}=r(79);const c=r(747);class ExitError extends Error{constructor(e,t){super(e);this.code=t}}const a=10;const u=["-c","user.name=GitHub","-c","user.email=noreply@github.com"];function git(e,...t){const r=["ignore","pipe",s.isDebug()?"inherit":"pipe"];const o=t.filter(e=>![null,undefined].includes(e)&&(!s.isDebug()||e!=="--quiet"));const i=`git ${o.join(" ")}`;s.debug(`Executing git command ${i}`);return new Promise((t,s)=>{const c=n("git",u.concat(o),{cwd:e,stdio:r});const a=[];if(r[2]!=="inherit"){c.stdout.on("data",e=>a.push(e));c.stderr.on("data",e=>a.push(e))}c.on("error",()=>{s(new Error(`command failed: ${i}`))});c.on("exit",e=>{const r=Buffer.concat(a);if(e===0){t(r.toString("utf8").trim())}else{s(new ExitError(`command ${i} failed with code ${e}. Error Message: ${r}`,e))}})})}async function getVersion(){const e=await git(".","--version");const t=e.match(/(\d+\.\d+(\.\d+)?)/);return t&&t.length>1?t[1]:undefined}async function clone(e,t,r){if(!c.existsSync(t)){await git(".","clone","--quiet","--shallow-submodules","--no-tags","--branch",r,e,t)}else{s.warn(`Folder ${t} already exist. Won't clone`)}}async function fetch(e,t){await git(e,"fetch","--quiet","origin",`${t}:refs/remotes/origin/${t}`)}async function fetchUntilMergeBase(e,t,r){const n=(new Date).getTime()+r;const o=`refs/remotes/origin/${t}`;while((new Date).getTime()1){const t=await git(e,"merge-base",r[0],r[1]);r=[t].concat(r.slice(2))}return r[0]}catch(e){if(e instanceof ExitError&&e.code===1){return null}else{throw e}}}async function mergeCommits(e,t){return(await git(e,"rev-list","--parents",`${t}..HEAD`)).split(/\n/g).map(e=>e.split(/ /g).slice(1)).filter(e=>e.length>1)}async function merge(e,t,r){return await git(e,"pull","--no-rebase",t,r)}async function head(e){return await git(e,"show-ref","--head","-s","/HEAD")}async function sha(e,t){return await git(e,"show-ref","-s",`refs/remotes/origin/${t}`)}async function rename(e,t){return await git(e,"branch","--move",t)}async function rebase(e,t){return await git(e,"rebase","--quiet","--autosquash",t)}async function push(e,t,r){return await git(e,"push","--quiet",t?"--force-with-lease":null,"origin",r)}async function doesBranchExist(e,t,r,n){o(t,"owner is not defined");o(r,"repo is not defined");o(n,"branch is not defined");try{const{status:o}=await e.repos.getBranch({owner:t,repo:r,branch:n});return o==200}catch(e){s.warn(`project github.com/${t}/${r}:${n} does not exist. It's not necessarily an error.`);return false}}async function hasPullRequest(e,t,r,n,o){return await hasForkPullRequest(e,t,r,n,o)||await hasOriginPullRequest(e,t,r,n)}async function hasForkPullRequest(e,t,r,n,i){o(t,"owner is not defined");o(r,"repo is not defined");o(n,"branch is not defined");o(i,"fromAuthor is not defined");try{const{status:o,data:c}=await e.pulls.list({owner:t,repo:r,state:"open",head:`${i}:${n}`});return o==200&&c.length>0}catch(e){s.error(`Error getting pull request list from https://api.github.com/repos/${t}/${r}/pulls?head=${i}:${n}&state=open'".`);throw e}}async function hasOriginPullRequest(e,t,r,n){o(t,"owner is not defined");o(r,"repo is not defined");o(n,"branch is not defined");try{const{status:o,data:i}=await e.pulls.list({owner:t,repo:r,state:"open",head:`${t}:${n}`});return o==200&&i.length>0}catch(e){s.error(`Error getting pull request list from https://api.github.com/repos/${t}/${r}/pulls?head=${t}:${n}&state=open'".`);throw e}}async function getRepository(e,t,r){o(e,"octokit is not defined");o(t,"owner is not defined");o(r,"repo is not defined");try{const{status:n,data:o}=await e.repos.get({owner:t,repo:r});s.debug(`getRepository info ${t}/${r}. ${n}`);s.debug(o);if(n==200){return o}return undefined}catch(e){s.warn(`${t}/${r} not found. Trying to get it by forked project list.`);return undefined}}async function getForkedProject(e,t,r,n,i=1,c=100){o(t,"owner is not defined");o(r,"repo is not defined");o(n,"wantedOwner is not defined");o(i,"page is not defined");try{const{status:o,data:a}=await e.repos.listForks({owner:t,repo:r,page:i});if(o==200){if(a&&a.length>0){const o=a.find(e=>e.owner.login===n);return o?o:await getForkedProject(e,t,r,n,++i,c)}else{return undefined}}}catch(e){s.error(`Error getting forked project list from https://api.github.com/repos/${t}/${r}/forks?per_page=${c}&page=${i}'".`);throw e}}e.exports={ExitError:ExitError,git:git,clone:clone,fetch:fetch,fetchUntilMergeBase:fetchUntilMergeBase,fetchDeepen:fetchDeepen,mergeBase:mergeBase,mergeCommits:mergeCommits,merge:merge,head:head,sha:sha,rename:rename,rebase:rebase,push:push,doesBranchExist:doesBranchExist,hasPullRequest:hasPullRequest,getForkedProject:getForkedProject,getRepository:getRepository,getVersion:getVersion}},,,,,function(e,t,r){"use strict";const n=r(622);const o=r(814);const i=r(39)();function resolveCommandAttempt(e,t){const r=process.cwd();const s=e.options.cwd!=null;if(s){try{process.chdir(e.options.cwd)}catch(e){}}let c;try{c=o.sync(e.command,{path:(e.options.env||process.env)[i],pathExt:t?n.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(c){c=n.resolve(s?e.options.cwd:"",c)}return c}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},,,,,function(e,t,r){"use strict";const n=r(87);const o=r(955);const i=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 s=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=o.sync("wmic",["os","get","Caption"]).stdout||""}catch(t){e=o.sync("powershell",["(Get-CimInstance -ClassName Win32_OperatingSystem).caption"]).stdout||""}const t=(e.match(/2008|2012|2016|2019/)||[])[0];if(t){return`Server ${t}`}}return i.get(r)};e.exports=s},,,,,,function(e,t,r){"use strict";const n=r(598);const o=r(622);const i=r(774).copy;const s=r(368).remove;const c=r(727).mkdirp;const a=r(322).pathExists;const u=r(425);function move(e,t,r,n){if(typeof r==="function"){n=r;r={}}const i=r.overwrite||r.clobber||false;u.checkPaths(e,t,"move",(r,s)=>{if(r)return n(r);const{srcStat:a}=s;u.checkParentPaths(e,a,t,"move",r=>{if(r)return n(r);c(o.dirname(t),r=>{if(r)return n(r);return doRename(e,t,i,n)})})})}function doRename(e,t,r,n){if(r){return s(t,o=>{if(o)return n(o);return rename(e,t,r,n)})}a(t,(o,i)=>{if(o)return n(o);if(i)return n(new Error("dest already exists."));return rename(e,t,r,n)})}function rename(e,t,r,o){n.rename(e,t,n=>{if(!n)return o();if(n.code!=="EXDEV")return o(n);return moveAcrossDevice(e,t,r,o)})}function moveAcrossDevice(e,t,r,n){const o={overwrite:r,errorOnExist:true};i(e,t,o,t=>{if(t)return n(t);return s(e,n)})}e.exports=move},,,function(e,t,r){const{run:n}=r(395);const{logger:o,annotationer:i}=r(79);async function archiveArtifacts(e,t,r){const n=getNodesToArchive(e,t);o.info(n.length>0?`Archiving artifacts for ${n.map(e=>e.project)}`:"No artifacts to archive");i.notice("No artifacts to archive");await uploadNodes(n,r)}function getNodesToArchive(e,t){const r=e.build["archive-artifacts"]&&e.build["archive-artifacts"].dependencies?e.build["archive-artifacts"].dependencies:"none";return r==="none"?[e].filter(e=>e.build["archive-artifacts"]&&e.build["archive-artifacts"].paths):t.filter(t=>t.build["archive-artifacts"]&&t.build["archive-artifacts"].paths&&(r==="all"||r.includes(t.project)||t.project===e.project))}async function uploadNodes(e,t){await Promise.allSettled(e.map(async e=>{o.info(`Project [${e.project}]. Uploading artifacts...`);const r=await n(e.build["archive-artifacts"],t);if(r){const t=r.artifactItems&&r.artifactItems.length>0?`Uploaded Items (${r.artifactItems.length}): ${r.artifactItems}.`:"";if(r.failedItems&&r.failedItems.length>0){o.error(`Project [${e.project}] Failed State. Artifact [${r.artifactName}]. Failed Items (${r.failedItems.length}): ${r.failedItems}. ${t}`);return Promise.reject(r)}else{o.info(`Project [${e.project}]. Artifact [${r.artifactName}]. ${t}`);return Promise.resolve(r)}}else{o.info(`Project [${e.project}]. No artifacts uploaded`);return Promise.resolve(undefined)}})).then(e=>{o.info("-------------- ARCHIVE ARTIFACTS SUMMARY --------------");const t=e.map(e=>e.value||e.reason).filter(e=>e&&e.artifactItems&&e.artifactItems.length>0);const r=t.flatMap(e=>e.artifactItems);const n=e.filter(e=>e.reason).map(e=>e.reason).filter(e=>e&&e.failedItems&&e.failedItems.length>0);const s=n.flatMap(e=>e.failedItems);o.info(`Artifacts uploaded (${t.length}): ${t.map(e=>e.artifactName)}. Files (${r.length}): ${r}`);o.info(`Artifacts failed (${n.length}): ${n.map(e=>e.artifactName)}. Files (${s.length}): ${s}`);if(t.length){i.notice(`Artifacts archiving error. Total (${r.length})`,r)}if(n.length){i.error(`Artifacts archiving error. Total (${s.length})`,s)}})}e.exports={archiveArtifacts:archiveArtifacts}},,,,,,,function(e){e.exports=addHook;function addHook(e,t,r,n){var o=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(o.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 o(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 o(e,t)})}}e.registry[r].push({hook:n,orig:o})}},,function(e,t,r){"use strict";const n=r(622);const o=r(39);e.exports=(e=>{e=Object.assign({cwd:process.cwd(),path:process.env[o()]},e);let t;let r=n.resolve(e.cwd);const i=[];while(t!==r){i.push(n.join(r,"node_modules/.bin"));t=r;r=n.resolve(r,"..")}i.push(n.dirname(process.execPath));return i.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=o({env:r});t.path=r[n];r[n]=e.exports(t);return r})},,,,,function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(598);const i=r(622);const s=r(727);const c=r(322).pathExists;function outputFile(e,t,r,n){if(typeof r==="function"){n=r;r="utf8"}const a=i.dirname(e);c(a,(i,c)=>{if(i)return n(i);if(c)return o.writeFile(e,t,r,n);s.mkdirs(a,i=>{if(i)return n(i);o.writeFile(e,t,r,n)})})}function outputFileSync(e,...t){const r=i.dirname(e);if(o.existsSync(r)){return o.writeFileSync(e,...t)}s.mkdirsSync(r);o.writeFileSync(e,...t)}e.exports={outputFile:n(outputFile),outputFileSync:outputFileSync}},,,,,,function(e,t,r){const n=r(765);const{Octokit:o}=r(889);const{ClientError:i}=r(79);const{formatDate:s}=r(375);r(63).config();function getProcessEnvVariable(e,t=true){const r=n.env[e];if(t&&(!r||!r.length)){throw new i(`environment variable ${e} not set!`)}return r}function addInputVariableToEnv(e,t,r){if(e){n.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]=e}else if(r){throw new Error(`Input variable ${t} is mandatory and it's not defined. Please add it following documentation.`)}}function addLocalExecutionVariables(e){Object.entries(e).forEach(([e,t])=>addInputVariableToEnv(t.value,e,t.mandatory))}function getDefaultRootFolder(){return`build_chain_${s(new Date)}`}function createOctokitInstance(e){return e?new o({auth:`token ${e}`,userAgent:"kiegroup/github-build-chain-action"}):new o({userAgent:"kiegroup/github-build-chain-action"})}function treatSkipProjectCheckout(e){const t=new Map;if(e&&e.length>0){e.forEach(e=>{const r=e.split("=");t.set(r[0],r[1])})}return t}e.exports={addLocalExecutionVariables:addLocalExecutionVariables,createOctokitInstance:createOctokitInstance,getProcessEnvVariable:getProcessEnvVariable,getDefaultRootFolder:getDefaultRootFolder,treatSkipProjectCheckout:treatSkipProjectCheckout}},,,,,,,,,function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(r(622));function getDownloadSpecification(e,t,r,n){const i=new Set;const s={rootDownloadLocation:n?o.join(r,e):r,directoryStructure:[],emptyFilesToCreate:[],filesToDownload:[]};for(const c of t){if(c.path.startsWith(`${e}/`)||c.path.startsWith(`${e}\\`)){const t=o.normalize(c.path);const a=o.join(r,n?t:t.replace(e,""));if(c.itemType==="file"){i.add(o.dirname(a));if(c.fileLength===0){s.emptyFilesToCreate.push(a)}else{s.filesToDownload.push({sourceLocation:c.contentLocation,targetPath:a})}}}}s.directoryStructure=Array.from(i);return s}t.getDownloadSpecification=getDownloadSpecification},,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(605);const o=r(211);const i=r(950);let s;var c;(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"})(c=t.HttpCodes||(t.HttpCodes={}));var a;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(a=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=i.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const f=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const p=["OPTIONS","GET","DELETE","HEAD"];const d=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;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=new URL(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[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,u.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[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.post(e,n,r);return this._processResponse(o,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.put(e,n,r);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.patch(e,n,r);return this._processResponse(o,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let o=new URL(t);let i=this._prepareRequest(e,o,n);let s=this._allowRetries&&p.indexOf(e)!=-1?this._maxRetries+1:1;let a=0;let u;while(a0){const s=u.message.headers["location"];if(!s){break}let c=new URL(s);if(o.protocol=="https:"&&o.protocol!=c.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 u.readBody();if(c.hostname!==o.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}i=this._prepareRequest(e,c,n);u=await this.requestRaw(i,r);t--}if(f.indexOf(u.message.statusCode)==-1){return u}a+=1;if(a{let o=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,o)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;let i=(e,t)=>{if(!o){o=true;r(e,t)}};let s=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);i(null,t)});s.on("socket",e=>{n=e});s.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}i(new Error("Request timeout: "+e.options.path),null)});s.on("error",function(e){i(e,null)});if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){s.end()});t.pipe(s)}else{s.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const s=i.parsedUrl.protocol==="https:";i.httpModule=s?o:n;const c=s?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):c;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(i.options)})}return i}_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 o;if(this.requestOptions&&this.requestOptions.headers){o=n(this.requestOptions.headers)[t]}return e[t]||o||r}_getAgent(e){let t;let c=i.getProxyUrl(e);let a=c&&c.hostname;if(this._keepAlive&&a){t=this._proxyAgent}if(this._keepAlive&&!a){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(a){if(!s){s=r(413)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:`${c.username}:${c.password}`,host:c.hostname,port:c.port}};let n;const o=c.protocol==="https:";if(u){n=o?s.httpsOverHttps:s.httpsOverHttp}else{n=o?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new o.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=u?o.globalAgent:n.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(d,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 o=e.message.statusCode;const i={statusCode:o,result:null,headers:{}};if(o==c.NotFound){r(i)}let s;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){s=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(a)}i.result=s}i.headers=e.message.headers}catch(e){}if(o>299){let e;if(s&&s.message){e=s.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+o+")"}let t=new HttpClientError(e,o);t.result=i.result;n(t)}else{r(i)}})}}t.HttpClient=HttpClient},,,,,,,,,,,,,,,,,function(e){"use strict";function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){var t=this.name+": ";t+=this.reason||"(unknown reason)";if(!e&&this.mark){t+=" "+this.mark.toString()}return t};e.exports=YAMLException},function(e,t,r){const n=r(989);const o=r(946);const i=r(113);const s=r(112);function treatCommand(e,t={}){const r=i.treat(e);let c=n;if(!excludeTreatment(r)){if(r.match(/.*mvn .*/)){c=o}}return s.treat(c.treat(r),t.replaceExArray)}function excludeTreatment(e){return e.trim().match(/^export .*=/)||e.trim().match(/^echo .*/)}e.exports={treatCommand:treatCommand}},,,,,function(e,t,r){var n=r(49);var o=function(){};var i=function(e){return e.setHeader&&typeof e.abort==="function"};var s=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var c=function(e,t,r){if(typeof t==="function")return c(e,null,t);if(!t)t={};r=n(r||o);var a=e._writableState;var u=e._readableState;var l=t.readable||t.readable!==false&&e.readable;var f=t.writable||t.writable!==false&&e.writable;var p=false;var d=function(){if(!e.writable)h()};var h=function(){f=false;if(!l)r.call(e)};var m=function(){l=false;if(!f)r.call(e)};var g=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var w=function(t){r.call(e,t)};var y=function(){process.nextTick(b)};var b=function(){if(p)return;if(l&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"));if(f&&!(a&&(a.ended&&!a.destroyed)))return r.call(e,new Error("premature close"))};var v=function(){e.req.on("finish",h)};if(i(e)){e.on("complete",h);e.on("abort",y);if(e.req)v();else e.on("request",v)}else if(f&&!a){e.on("end",d);e.on("close",d)}if(s(e))e.on("exit",g);e.on("end",m);e.on("finish",h);if(t.error!==false)e.on("error",w);e.on("close",y);return function(){p=true;e.removeListener("complete",h);e.removeListener("abort",y);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",d);e.removeListener("close",d);e.removeListener("finish",h);e.removeListener("exit",g);e.removeListener("end",m);e.removeListener("error",w);e.removeListener("close",y)}};e.exports=c},,,,,,function(e,t,r){"use strict";const n=r(622);const o=r(948);const i=r(489);const s=r(462);const c=r(389);const a=r(280);const u=process.platform==="win32";const l=/\.(?:com|exe)$/i;const f=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const p=o(()=>a.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true))||false;function detectShebang(e){e.file=i(e);const t=e.file&&c(e.file);if(t){e.args.unshift(e.file);e.command=t;return i(e)}return e.file}function parseNonShell(e){if(!u){return e}const t=detectShebang(e);const r=!l.test(t);if(e.options.forceShell||r){const r=f.test(t);e.command=n.normalize(e.command);e.command=s.command(e.command);e.args=e.args.map(e=>s.argument(e,r));const o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(p){return e}const t=[e.command].concat(e.args).join(" ");if(u){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},function(e,t,r){e.exports=rimraf;rimraf.sync=rimrafSync;var n=r(357);var o=r(622);var i=r(747);var s=undefined;try{s=r(120)}catch(e){}var c=parseInt("666",8);var a={nosort:true,silent:true};var u=0;var l=process.platform==="win32";function defaults(e){var t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(function(t){e[t]=e[t]||i[t];t=t+"Sync";e[t]=e[t]||i[t]});e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&s===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||a}function rimraf(e,t,r){if(typeof t==="function"){r=t;t={}}n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n.equal(typeof r,"function","rimraf: callback function required");n(t,"rimraf: invalid options argument provided");n.equal(typeof t,"object","rimraf: options should be object");defaults(t);var o=0;var i=null;var c=0;if(t.disableGlob||!s.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,function(r,n){if(!r)return afterGlob(null,[e]);s(e,t.glob,afterGlob)});function next(e){i=i||e;if(--c===0)r(i)}function afterGlob(e,n){if(e)return r(e);c=n.length;if(c===0)return r();n.forEach(function(e){rimraf_(e,t,function CB(r){if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&o1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&e==="**")return o;if(e==="")return"";var n="";var i=!!r.nocase;var u=false;var l=[];var p=[];var h;var m=false;var g=-1;var w=-1;var y=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var b=this;function clearStateChar(){if(h){switch(h){case"*":n+=a;i=true;break;case"?":n+=c;i=true;break;default:n+="\\"+h;break}b.debug("clearStateChar %j %j",h,n);h=false}}for(var v=0,E=e.length,T;v-1;k--){var R=p[k];var j=n.slice(0,R.reStart);var F=n.slice(R.reStart,R.reEnd-8);var x=n.slice(R.reEnd-8,R.reEnd);var D=n.slice(R.reEnd);x+=D;var $=j.split("(").length-1;var G=D;for(v=0;v<$;v++){G=G.replace(/\)[+*?]?/,"")}D=G;var U="";if(D===""&&t!==d){U="$"}var I=j+F+D+U+x;n=I}if(n!==""&&i){n="(?=.)"+n}if(C){n=y+n}if(t===d){return[n,i]}if(!i){return globUnescape(e)}var L=r.nocase?"i":"";try{var B=new RegExp("^"+n+"$",L)}catch(e){return new RegExp("$.")}B._glob=e;B._src=n;return B}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?a:t.dot?u:l;var n=t.nocase?"i":"";var i=e.map(function(e){return e.map(function(e){return e===o?r:typeof e==="string"?regExpEscape(e):e._src}).join("\\/")}).join("|");i="^(?:"+i+")$";if(this.negate)i="^(?!"+i+").*$";try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var n=new Minimatch(t,r);e=e.filter(function(e){return n.match(e)});if(n.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=match;function match(e,t){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(p);this.debug(this.pattern,"split",e);var o=this.set;this.debug(this.pattern,"set",o);var i;var s;for(s=e.length-1;s>=0;s--){i=e[s];if(i)break}for(s=0;s>> no match, partial?",e,f,t,p);if(f===c)return true}return false}var h;if(typeof u==="string"){if(n.nocase){h=l.toLowerCase()===u.toLowerCase()}else{h=l===u}this.debug("string match",u,l,h)}else{h=l.match(u);this.debug("pattern match",u,l,h)}if(!h)return false}if(i===c&&s===a){return true}else if(i===c){return r}else if(s===a){var m=i===c-1&&e[i]==="";return m}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},,,function(e,t,r){"use strict";var n=r(945);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},,,,,,,function(e,t,r){"use strict";var n=r(43);e.exports=new n({explicit:[r(574),r(921),r(988)]})},,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},,function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(r(747));const i=r(470);const s=r(622);const c=r(870);function getUploadSpecification(e,t,r){c.checkArtifactName(e);const n=[];if(!o.existsSync(t)){throw new Error(`Provided rootDirectory ${t} does not exist`)}if(!o.lstatSync(t).isDirectory()){throw new Error(`Provided rootDirectory ${t} is not a valid directory`)}t=s.normalize(t);t=s.resolve(t);for(let a of r){if(!o.existsSync(a)){throw new Error(`File ${a} does not exist`)}if(!o.lstatSync(a).isDirectory()){a=s.normalize(a);a=s.resolve(a);if(!a.startsWith(t)){throw new Error(`The rootDirectory: ${t} is not a parent directory of the file: ${a}`)}const r=a.replace(t,"");c.checkArtifactFilePath(r);n.push({absoluteFilePath:a,uploadFilePath:s.join(e,r)})}else{i.debug(`Removing ${a} from rawSearchResults because it is a directory`)}}return n}t.getUploadSpecification=getUploadSpecification},,,function(e,t,r){const n=r(605);const o=r(211);function requestUrl(e,t){const r=t?{headers:{Authorization:`token ${t}`}}:{};return new Promise((t,i)=>{(e.startsWith("https://")?o:n).get(e,r,e=>{if(e.statusCode<200||e.statusCode>299){i(`Status: ${e.statusCode}. ${e.statusMessage}`)}let r=[];e.on("data",e=>r.push(e));e.on("end",()=>t(Buffer.concat(r).toString()))}).on("error",e=>i(e))})}async function getUrlContent(e,t=undefined){try{return await requestUrl(e,t)}catch(t){throw new Error(`Error getting ${e}. Error: ${t}`)}}e.exports={getUrlContent:getUrlContent}},,function(e,t,r){"use strict";const n=r(598);const o=r(622);const i=r(727).mkdirs;const s=r(322).pathExists;const c=r(916).utimesMillis;const a=r(425);function copy(e,t,r,n){if(typeof r==="function"&&!n){n=r;r={}}else if(typeof r==="function"){r={filter:r}}n=n||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}a.checkPaths(e,t,"copy",(o,i)=>{if(o)return n(o);const{srcStat:s,destStat:c}=i;a.checkParentPaths(e,s,t,"copy",o=>{if(o)return n(o);if(r.filter)return handleFilter(checkParentDir,c,e,t,r,n);return checkParentDir(c,e,t,r,n)})})}function checkParentDir(e,t,r,n,c){const a=o.dirname(r);s(a,(o,s)=>{if(o)return c(o);if(s)return startCopy(e,t,r,n,c);i(a,o=>{if(o)return c(o);return startCopy(e,t,r,n,c)})})}function handleFilter(e,t,r,n,o,i){Promise.resolve(o.filter(r,n)).then(s=>{if(s)return e(t,r,n,o,i);return i()},e=>i(e))}function startCopy(e,t,r,n,o){if(n.filter)return handleFilter(getStats,e,t,r,n,o);return getStats(e,t,r,n,o)}function getStats(e,t,r,o,i){const s=o.dereference?n.stat:n.lstat;s(t,(n,s)=>{if(n)return i(n);if(s.isDirectory())return onDir(s,e,t,r,o,i);else if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return onFile(s,e,t,r,o,i);else if(s.isSymbolicLink())return onLink(e,t,r,o,i)})}function onFile(e,t,r,n,o,i){if(!t)return copyFile(e,r,n,o,i);return mayCopyFile(e,r,n,o,i)}function mayCopyFile(e,t,r,o,i){if(o.overwrite){n.unlink(r,n=>{if(n)return i(n);return copyFile(e,t,r,o,i)})}else if(o.errorOnExist){return i(new Error(`'${r}' already exists`))}else return i()}function copyFile(e,t,r,o,i){n.copyFile(t,r,n=>{if(n)return i(n);if(o.preserveTimestamps)return handleTimestampsAndMode(e.mode,t,r,i);return setDestMode(r,e.mode,i)})}function handleTimestampsAndMode(e,t,r,n){if(fileIsNotWritable(e)){return makeFileWritable(r,e,o=>{if(o)return n(o);return setDestTimestampsAndMode(e,t,r,n)})}return setDestTimestampsAndMode(e,t,r,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t,r){return setDestMode(e,t|128,r)}function setDestTimestampsAndMode(e,t,r,n){setDestTimestamps(t,r,t=>{if(t)return n(t);return setDestMode(r,e,n)})}function setDestMode(e,t,r){return n.chmod(e,t,r)}function setDestTimestamps(e,t,r){n.stat(e,(e,n)=>{if(e)return r(e);return c(t,n.atime,n.mtime,r)})}function onDir(e,t,r,n,o,i){if(!t)return mkDirAndCopy(e.mode,r,n,o,i);if(t&&!t.isDirectory()){return i(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`))}return copyDir(r,n,o,i)}function mkDirAndCopy(e,t,r,o,i){n.mkdir(r,n=>{if(n)return i(n);copyDir(t,r,o,t=>{if(t)return i(t);return setDestMode(r,e,i)})})}function copyDir(e,t,r,o){n.readdir(e,(n,i)=>{if(n)return o(n);return copyDirItems(i,e,t,r,o)})}function copyDirItems(e,t,r,n,o){const i=e.pop();if(!i)return o();return copyDirItem(e,i,t,r,n,o)}function copyDirItem(e,t,r,n,i,s){const c=o.join(r,t);const u=o.join(n,t);a.checkPaths(c,u,"copy",(t,o)=>{if(t)return s(t);const{destStat:a}=o;startCopy(a,c,u,i,t=>{if(t)return s(t);return copyDirItems(e,r,n,i,s)})})}function onLink(e,t,r,i,s){n.readlink(t,(t,c)=>{if(t)return s(t);if(i.dereference){c=o.resolve(process.cwd(),c)}if(!e){return n.symlink(c,r,s)}else{n.readlink(r,(t,u)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return n.symlink(c,r,s);return s(t)}if(i.dereference){u=o.resolve(process.cwd(),u)}if(a.isSrcSubdir(c,u)){return s(new Error(`Cannot copy '${c}' to a subdirectory of itself, '${u}'.`))}if(e.isDirectory()&&a.isSrcSubdir(u,c)){return s(new Error(`Cannot overwrite '${u}' with '${c}'.`))}return copyLink(c,r,s)})}})}function copyLink(e,t,r){n.unlink(t,o=>{if(o)return r(o);return n.symlink(e,t,r)})}e.exports=copy},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(972);const o=r(327);const i=process.platform==="win32";function getSearchPaths(e){e=e.filter(e=>!e.negate);const t={};for(const r of e){const e=i?r.searchPath.toUpperCase():r.searchPath;t[e]="candidate"}const r=[];for(const o of e){const e=i?o.searchPath.toUpperCase():o.searchPath;if(t[e]==="included"){continue}let s=false;let c=e;let a=n.dirname(c);while(a!==c){if(t[a]){s=true;break}c=a;a=n.dirname(c)}if(!s){r.push(o.searchPath);t[e]="included"}}return r}t.getSearchPaths=getSearchPaths;function match(e,t){let r=o.MatchKind.None;for(const n of e){if(n.negate){r&=~n.match(t)}else{r|=n.match(t)}}return r}t.match=match;function partialMatch(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}t.partialMatch=partialMatch},function(e,t,r){var n=r(747);var o=r(250);var i=r(466);var s=r(608);var c=r(669);var a;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){a=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{a="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,a,{get:function(){return t}})}var l=noop;if(c.debuglog)l=c.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))l=function(){var e=c.format.apply(c,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[a]){var f=global[a]||[];publishQueue(n,f);n.close=function(e){function close(t,r){return e.call(n,t,function(e){if(!e){retry()}if(typeof r==="function")r.apply(this,arguments)})}Object.defineProperty(close,u,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);retry()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){l(n[a]);r(357).equal(n[a].length,0)})}}if(!global[a]){publishQueue(global,n[a])}e.exports=patch(s(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){o(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n){return t(e,r,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,o){if(typeof n==="function")o=n,n=null;return go$writeFile(e,t,n,o);function go$writeFile(e,t,n,o){return r(e,t,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,o]]);else{if(typeof o==="function")o.apply(this,arguments);retry()}})}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,o){if(typeof r==="function")o=r,r=null;return go$appendFile(e,t,r,o);function go$appendFile(e,t,r,o){return n(e,t,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,o]]);else{if(typeof o==="function")o.apply(this,arguments);retry()}})}}var s=e.readdir;e.readdir=readdir;function readdir(e,t,r){var n=[e];if(typeof t!=="function"){n.push(t)}else{r=t}n.push(go$readdir$cb);return go$readdir(n);function go$readdir$cb(e,t){if(t&&t.sort)t.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[n]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}}}function go$readdir(t){return s.apply(e,t)}if(process.version.substr(0,4)==="v0.8"){var c=i(e);ReadStream=c.ReadStream;WriteStream=c.WriteStream}var a=e.ReadStream;if(a){ReadStream.prototype=Object.create(a.prototype);ReadStream.prototype.open=ReadStream$open}var u=e.WriteStream;if(u){WriteStream.prototype=Object.create(u.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var l=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return l},set:function(e){l=e},enumerable:true,configurable:true});var f=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return a.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}})}function WriteStream(e,t){if(this instanceof WriteStream)return u.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}})}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var p=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n){return p(e,t,r,function(o,i){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}return e}function enqueue(e){l("ENQUEUE",e[0].name,e[1]);n[a].push(e)}function retry(){var e=n[a].shift();if(e){l("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(470);function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;n.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;n.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;n.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},,,,function(e){e.exports=require("http")},,,function(e){"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}},,,function(e,t,r){"use strict";var n=r(43);e.exports=new n({include:[r(23)]})},,,function(e){e.exports=require("events")},function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(598);const i=r(622);const s=r(727);const c=r(368);const a=n(function emptyDir(e,t){t=t||function(){};o.readdir(e,(r,n)=>{if(r)return s.mkdirs(e,t);n=n.map(t=>i.join(e,t));deleteItem();function deleteItem(){const e=n.pop();if(!e)return t();c.remove(e,e=>{if(e)return t(e);deleteItem()})}})});function emptyDirSync(e){let t;try{t=o.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach(t=>{t=i.join(e,t);c.removeSync(t)})}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:a,emptydir:a}},,,,function(e){e.exports=require("constants")},,function(e){"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,o,i,s,c;var a=r.indexOf(e);var u=r.indexOf(t,a+1);var l=a;if(a>=0&&u>0){n=[];i=r.length;while(l>=0&&!c){if(l==a){n.push(l);a=r.indexOf(e,l+1)}else if(n.length==1){c=[n.pop(),u]}else{o=n.pop();if(o=0?a:u}if(n.length){c=[i,s]}}return c}},function(e){e.exports=require("path")},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},,,,,function(e,t,r){"use strict";const{stringify:n}=r(356);const{outputFileSync:o}=r(517);function outputJsonSync(e,t,r){const i=n(t,r);o(e,i,r)}e.exports=outputJsonSync},function(e,t,r){"use strict";var n=r(945);function resolveJavascriptRegExp(e){if(e===null)return false;if(e.length===0)return false;var t=e,r=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(r)n=r[1];if(n.length>3)return false;if(t[t.length-n.length-1]!=="/")return false}return true}function constructJavascriptRegExp(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(r)n=r[1];t=t.slice(1,t.length-n.length-1)}return new RegExp(t,n)}function representJavascriptRegExp(e){var t="/"+e.source+"/";if(e.global)t+="g";if(e.multiline)t+="m";if(e.ignoreCase)t+="i";return t}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}e.exports=new n("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},function(e){e.exports=require("perf_hooks")},function(e){e.exports=require("net")},,function(e,t,r){"use strict";var n=r(945);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},function(e,t,r){var n=r(293);var o=Object.create(null);var i=r(49);e.exports=n(inflight);function inflight(e,t){if(o[e]){o[e].push(t);return null}else{o[e]=[t];return makeres(e)}}function makeres(e){return i(function RES(){var t=o[e];var r=t.length;var n=slice(arguments);try{for(var i=0;ir){t.splice(0,r);process.nextTick(function(){RES.apply(null,n)})}else{delete o[e]}}})}function slice(e){var t=e.length;var r=[];for(var n=0;n{e.push(...parentChainFromNode(t).filter(t=>t&&!e.find(e=>e.project===t.project)).map(e=>{return{...e}}));return e},[]).filter(e=>e);t.push(e);return t}function childChainFromNode(e,t=[]){const r=t.findIndex(t=>t.project===e.project);if(r>-1){t.splice(r,1)}t.push(e);e.children.forEach(e=>childChainFromNode(e,t));return t}function jsonStringFunction(e,t,r){{return["parents","children"].includes(e)?t.map(e=>{if(!r.includes(e.project)){r.push(e.project);return e}return{project:e.project,warning:"rest of the node information removed to avoid circular dependency problem. The node information is already defined in the json."}}):t}}e.exports={parentChainFromNode:parentChainFromNode,childChainFromNode:childChainFromNode,jsonStringFunction:jsonStringFunction}},,,,function(e,t,r){"use strict";e.exports={copySync:r(110)}},,,,,function(e){function getNodeTriggeringJob(e,t){return t.find(t=>t.project===e.config.github.inputs.startingProject||t.project===e.config.github.repository||t.project===e.config.github.project)}e.exports={getNodeTriggeringJob:getNodeTriggeringJob}},,function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise(function(n,o){r=e[t](r),settle(n,o,r.done,r.value)})}}function settle(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(747));const c=i(r(761));const a=r(669);const u=a.promisify(s.stat);function createGZipFileOnDisk(e,t){return n(this,void 0,void 0,function*(){return new Promise((r,o)=>{const i=s.createReadStream(e);const a=c.createGzip();const l=s.createWriteStream(t);i.pipe(a).pipe(l);l.on("finish",()=>n(this,void 0,void 0,function*(){const e=(yield u(t)).size;r(e)}));l.on("error",e=>{console.log(e);o})})})}t.createGZipFileOnDisk=createGZipFileOnDisk;function createGZipFileInBuffer(e){return n(this,void 0,void 0,function*(){return new Promise(t=>n(this,void 0,void 0,function*(){var r,n;const i=s.createReadStream(e);const a=c.createGzip();i.pipe(a);const u=[];try{for(var l=o(a),f;f=yield l.next(),!f.done;){const e=f.value;u.push(e)}}catch(e){r={error:e}}finally{try{if(f&&!f.done&&(n=l.return))yield n.call(l)}finally{if(r)throw r.error}}t(Buffer.concat(u))}))})}t.createGZipFileInBuffer=createGZipFileInBuffer},,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}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},,,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")}},,function(e,t,r){const{logger:n}=r(79);const{getCommand:o}=r(11);const i=(e,t)=>{return Object.values(e).reduce((e,r)=>{if(r){(e[r[t]]=e[r[t]]||[]).push(r)}return e},{})};function printCheckoutInformation(e){n.debug("summary.js checkoutInfo",e);if(e&&Object.keys(e).length){n.info("----------------------------------------------");Object.entries(e).forEach(([e,t])=>n.info(t?`${t.group}/${t.project}:${t.branch}.${t.merge?` It has been merged with ${t.targetGroup}/${t.project}:${t.targetBranch}`:""}`:`${e}: No checkout information`));n.info("----------------------------------------------");Object.entries(i(e,"branch")).forEach(([e,t])=>{n.info(`Projects taken from branch "${e}":${t.map(e=>`\n ${e.group}/${e.project}${e.merge?`. Merged with ${e.targetGroup}/${e.project}:${e.targetBranch}`:""}`)}`)});n.info("----------------------------------------------")}}function printExecutionPlanNode(e,t){n.emptyLine();n.info(`[${e.project}]`);n.info(`Level Type: [${t}].`);if(e.build&&e.build.skip){n.info(`No command will be executed (the project is skipped).`)}else{if(e.build["build-command"].before&&o(e.build["build-command"].before,t)){n.info(o(e.build["build-command"].before,t))}n.info(o(e.build["build-command"],t));if(e.build["build-command"].after&&o(e.build["build-command"].after,t)){n.info(o(e.build["build-command"].after,t))}}}function printExecutionPlan(e,t){if(e&&Object.keys(e).length){n.info("----------------------------------------------");n.info(`[${Object.keys(e).length}] projects will be executed`);const r=e.findIndex(e=>e.project===t);if(r<0){throw new Error(`The chain ${e.map(e=>e.project)} does not contain the project triggering the job ${t}`)}Object.entries(e).forEach(([e,t])=>printExecutionPlanNode(t,ee.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const o=e;for(const i of r){e=o+i;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=u.dirname(e);const n=u.basename(e).toUpperCase();for(const o of yield t.readdir(r)){if(n===o.toUpperCase()){e=u.join(r,o);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},,function(e,t,r){const{ReadYamlException:n}=r(844);const o=r(414);function read(e){try{return o.safeLoad(e)}catch(e){const t=`error reading yaml file content. Error: ${e.message}`;console.error(t);throw new n(t)}}e.exports={read:read}},,function(e,t){"use strict";t.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]==="function")e.apply(this,t);else{return new Promise((r,n)=>{e.apply(this,t.concat([(e,t)=>e?n(e):r(t)]))})}},"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty(function(...t){const r=t[t.length-1];if(typeof r!=="function")return e.apply(this,t);else e.apply(this,t.slice(0,-1)).then(e=>r(null,e),r)},"name",{value:e.name})}},,,,,function(e){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var o=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||o)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},,,,function(e,t,r){"use strict";var n=r(740);var o=r(556);var i=r(910);var s=r(723);var c=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var u=9;var l=10;var f=13;var p=32;var d=33;var h=34;var m=35;var g=37;var w=38;var y=39;var b=42;var v=44;var E=45;var T=58;var S=61;var _=62;var O=63;var A=64;var P=91;var C=93;var k=96;var R=123;var j=124;var F=125;var x={};x[0]="\\0";x[7]="\\a";x[8]="\\b";x[9]="\\t";x[10]="\\n";x[11]="\\v";x[12]="\\f";x[13]="\\r";x[27]="\\e";x[34]='\\"';x[92]="\\\\";x[133]="\\N";x[160]="\\_";x[8232]="\\L";x[8233]="\\P";var D=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(e,t){var r,n,o,i,s,c,u;if(t===null)return{};r={};n=Object.keys(t);for(o=0,i=n.length;o0?e.charCodeAt(i-1):null;d=d&&isPlainSafe(s,c)}}else{for(i=0;in&&e[p+1]!==" ";p=i}}else if(!isPrintable(s)){return L}c=i>0?e.charCodeAt(i-1):null;d=d&&isPlainSafe(s,c)}u=u||f&&(i-p-1>n&&e[p+1]!==" ")}if(!a&&!u){return d&&!o(e)?$:G}if(r>9&&needIndentIndicator(e)){return L}return u?I:U}function writeScalar(e,t,r,n){e.dump=function(){if(t.length===0){return"''"}if(!e.noCompatMode&&D.indexOf(t)!==-1){return"'"+t+"'"}var i=e.indent*Math.max(1,r);var s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var c=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,c,e.indent,s,testAmbiguity)){case $:return t;case G:return"'"+t.replace(/'/g,"''")+"'";case U:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,i));case I:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,s),i));case L:return'"'+escapeString(t,s)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var o=n&&(e[e.length-2]==="\n"||e==="\n");var i=o?"+":n?"":"-";return r+i+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var o=e[0]==="\n"||e[0]===" ";var i;var s;while(s=r.exec(e)){var c=s[1],a=s[2];i=a[0]===" ";n+=c+(!o&&!i&&a!==""?"\n":"")+foldLine(a,t);o=i}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var o=0,i,s=0,c=0;var a="";while(n=r.exec(e)){c=n.index;if(c-o>t){i=s>o?s:c;a+="\n"+e.slice(o,i);o=i+1}s=c}a+="\n";if(e.length-o>t&&s>o){a+=e.slice(o,s)+"\n"+e.slice(s+1)}else{a+=e.slice(o)}return a.slice(1)}function escapeString(e){var t="";var r,n;var o;for(var i=0;i=55296&&r<=56319){n=e.charCodeAt(i+1);if(n>=56320&&n<=57343){t+=encodeHex((r-55296)*1024+n-56320+65536);i++;continue}}o=x[r];t+=!o&&isPrintable(r)?e[i]:o||encodeHex(r)}return t}function writeFlowSequence(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i1024)l+="? ";l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,u,false,false)){continue}l+=e.dump;n+=l}e.tag=o;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var i="",s=e.tag,c=Object.keys(r),a,u,f,p,d,h;if(e.sortKeys===true){c.sort()}else if(typeof e.sortKeys==="function"){c.sort(e.sortKeys)}else if(e.sortKeys){throw new o("sortKeys must be a boolean or a function")}for(a=0,u=c.length;a1024;if(d){if(e.dump&&l===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(d){h+=generateNextLine(e,t)}if(!writeNode(e,t+1,p,true,d)){continue}if(e.dump&&l===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;i+=h}e.tag=s;e.dump=i||"{}"}function detectType(e,t,r){var n,i,s,u,l,f;i=r?e.explicitTypes:e.implicitTypes;for(s=0,u=i.length;s tag resolver accepts not "'+f+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,i,s){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var a=c.call(e.dump);if(n){n=e.flowLevel<0||e.flowLevel>t}var u=a==="[object Object]"||a==="[object Array]",l,f;if(u){l=e.duplicates.indexOf(r);f=l!==-1}if(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0){i=false}if(f&&e.usedDuplicates[l]){e.dump="*ref_"+l}else{if(u&&f&&!e.usedDuplicates[l]){e.usedDuplicates[l]=true}if(a==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,i);if(f){e.dump="&ref_"+l+e.dump}}else{writeFlowMapping(e,t,e.dump);if(f){e.dump="&ref_"+l+" "+e.dump}}}else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;if(n&&e.dump.length!==0){writeBlockSequence(e,p,e.dump,i);if(f){e.dump="&ref_"+l+e.dump}}else{writeFlowSequence(e,p,e.dump);if(f){e.dump="&ref_"+l+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,s)}}else{if(e.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){e.dump="!<"+e.tag+"> "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],n=[],o,i;inspectNode(e,r,n);for(o=0,i=n.length;o-1){const e=n.substring(0,o);r(e);n=n.substring(o+c.EOL.length);o=n.indexOf(c.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let o=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(o&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){o=true;n+='"'}else{o=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return s(this,void 0,void 0,function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield f.which(this.toolPath,true);return new Promise((e,t)=>s(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+c.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});if(this.options.cwd&&!(yield p.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const o=this._getSpawnFileName();const i=u.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));let s="";if(i.stdout){i.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}s=this._processLineBuffer(e,s,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}let a="";if(i.stderr){i.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}a=this._processLineBuffer(e,a,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}i.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});i.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});i.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(s.length>0){this.emit("stdline",s)}if(a.length>0){this.emit("errline",a)}i.removeAllListeners();if(r){t(r)}else{e(n)}});if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.stdin.end(this.options.input)}}))})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let o="";function append(e){if(n&&e!=='"'){o+="\\"}o+=e;n=false}for(let i=0;i0){t.push(o);o=""}continue}append(s)}if(o.length>0){t.push(o.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=d.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},,,function(e,t,r){try{var n=r(669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(315)}},,,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},,,function(e,t,r){"use strict";const{stringify:n}=r(356);const{outputFile:o}=r(517);async function outputJson(e,t,r={}){const i=n(t,r);await o(e,i,r)}e.exports=outputJson},,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}))})},,,,function(e,t,r){const{logger:n}=r(79);const{prepareEnv:o,createGithubInformationObject:i,getEvent:s}=r(8);const{start:c}=r(785);const{createCommonConfig:a}=r(981);async function execute(e,t,r,o,s,u){const l=i(o,r);const f=await a(l,s,r);const p={token:e,octokit:t,config:f};n.debug("build-chain-pull-request.js. githubInformation",l);n.debug("build-chain-pull-request.js. config",f);await c(p,u)}async function executeFromEvent(e,t,r,n){await execute(e,t,r,n,undefined,{isArchiveArtifacts:true})}async function executeLocally(e,t,r,i,c,a={}){n.info(`Executing pull request flow for ${c} in ${i}`);a.isArchiveArtifacts=false;const u=await s(t,c);o(r,c,u);await execute(e,t,r,u,i,a)}e.exports={executeLocally:executeLocally,executeFromEvent:executeFromEvent}},,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(43);e.exports=new n({include:[r(611)],implicit:[r(841),r(633)],explicit:[r(913),r(842),r(947),r(100)]})},,,,function(e,t,r){"use strict";const n=r(676).fromPromise;const{makeDir:o,makeDirSync:i}=r(54);const s=n(o);e.exports={mkdirs:s,mkdirsSync:i,mkdirp:s,mkdirpSync:i,ensureDir:s,ensureDirSync:i}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},,,function(e){e.exports={name:"@kie/build-chain-action",version:"2.3.25",description:"Library to execute commands based on github projects dependencies.",main:"dist/build-chain-cli.js",author:"Enrique Mingorance Cano ",license:"SEE LICENSE IN LICENSE",private:false,bin:{"build-chain-action":"./bin/build-chain-cli.js"},scripts:{test:"jest",locktt:"locktt",lint:"eslint .",prettier:"prettier -l src/** test/**/*.js","prettier-write":"prettier --write .","lint-final":"npm run prettier && npm run lint",prepublish:"npm run lint && npm run test","ncc-build":"ncc build --minify bin/build-chain-event.js"},"git-pre-hooks":{"pre-commit":"npm run lint && npm run prettier && npm run ncc-build && git add dist/index.js","pre-push":"npm ci"},dependencies:{"@actions/artifact":"^0.3.5","@actions/core":"^1.6.0","@actions/exec":"^1.1.0","@actions/glob":"^0.1.0","@kie/build-chain-configuration-reader":"^2.2.3","@octokit/rest":"^17.6.0",argparse:"^2.0.1",dotenv:"^8.2.0","fs-extra":"^9.0.0","js-yaml":"^3.14.0",tmp:"^0.2.1"},devDependencies:{"@zeit/ncc":"^0.22.3",eslint:"^7.10.0","eslint-config-google":"^0.14.0","eslint-config-prettier":"^6.11.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.22.0","eslint-plugin-jest":"^23.19.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","git-pre-hooks":"^1.2.1",jest:"^25.5.1","mock-spawn":"^0.2.6",prettier:"^2.0.5"},jest:{testEnvironment:"node",modulePathIgnorePatterns:["locally_execution/"]},prettier:{trailingComma:"none",arrowParens:"avoid"},engines:{node:">= 12.18.0"}}},,,,,,,,,function(e){"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,n,o,i;if(t){i=Object.keys(t);for(r=0,n=i.length;r{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)});const o=(t=n.result)===null||t===void 0?void 0:t.value;if(!o){throw new Error("Response json body do not have ID Token field")}return o})}static getIDToken(e){return n(this,void 0,void 0,function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}s.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);s.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}})}}t.OidcClient=OidcClient},,,,,function(e){e.exports=require("fs")},,,,,,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 o=r(392);var i=r(588);var s=_interopDefault(r(454));var c=r(463);const a="5.4.9";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(i.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let n;const o=e.request&&e.request.fetch||s;return o(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(o=>{n=o.url;r=o.status;for(const e of o.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new c.RequestError(o.statusText,r,{headers:t,request:e})}if(r===304){throw new c.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return o.text().then(n=>{const o=new c.RequestError(n,r,{headers:t,request:e});try{let e=JSON.parse(o.message);Object.assign(o,e);let t=e.errors;o.message=o.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw o})}const i=o.headers.get("content-type");if(/application\/json/.test(i)){return o.json()}if(!i||/^text\/|charset=utf-8$/.test(i)){return o.text()}return getBufferResponse(o)}).then(e=>{return{status:r,url:n,headers:t,data:e}}).catch(r=>{if(r instanceof c.RequestError){throw r}throw new c.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 o=(e,t)=>{return fetchWrapper(r.parse(r.merge(e,t)))};Object.assign(o,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(o,n)};return Object.assign(n,{endpoint:r,defaults:withDefaults.bind(null,r)})}const u=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${a} ${o.getUserAgent()}`}});t.request=u},function(e,t,r){const{checkoutDefinitionTree:n,getPlaceHolders:o}=r(330);const{executeBuild:i}=r(11);const{getTreeForProject:s}=r(352);const{printCheckoutInformation:c}=r(656);const{logger:a}=r(79);const u=r(470);const{archiveArtifacts:l}=r(503);const{execute:f}=r(99);const{execute:p}=r(153);async function start(e,t={isArchiveArtifacts:true,skipExecution:false}){a.debug("single-flow.js options",t);const r={urlPlaceHolders:await o(e,e.config.github.inputs.definitionFile),token:e.token};a.debug("single-flow.js readerOptions",r);if(!t.skipExecution){await f(e.config.github.inputs.definitionFile,r)}u.startGroup(`[Single Flow] Checking out ${e.config.github.groupProject} and its dependencies`);const d=e.config.github.inputs.startingProject?e.config.github.inputs.startingProject:e.config.github.repository;a.debug("single-flow.js projectTriggeringJob",d);const h=await s(e.config.github.inputs.definitionFile,d,r);a.debug("single-flow.js definitionTree",h);const m=[h];a.info(`Single flow for project ${e.config.github.inputs.startingProject}. Nodes: ${m.map(e=>"\n"+e.project)}`);const g=await n(e,m,"pr",t);u.endGroup();if(!t.skipExecution){u.startGroup(`[Single Flow] Checkout Summary...`);c(g);u.endGroup();const n=await i(e.config.rootFolder,m,d,t).then(()=>true).catch(e=>e);if(t.isArchiveArtifacts){u.startGroup(`[Single Flow] Archiving artifacts...`);await l(m.find(e=>e.project===d),m,n===true?["success","always"]:["failure","always"]);u.endGroup()}else{a.info("Archive artifact won't be executed")}await p(e.config.github.inputs.definitionFile,n,r);if(n!==true){a.error(n);throw new Error(`Command executions have failed, please review latest execution ${n}`)}}else{a.info("Execution has been skipped.")}}e.exports={start:start}},,,,,,,function(e){e.exports=require("zlib")},,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)}},,function(e){e.exports=require("process")},,,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}},,,function(e,t,r){const{logger:n}=r(79);const{prepareEnv:o,createGithubInformationObject:i,getEvent:s}=r(8);const{start:c}=r(137);const{createCommonConfig:a}=r(981);async function execute(e,t,r,o,s,u){const l=i(o,r);const f=await a(l,s,r);const p={token:e,octokit:t,config:f};n.debug("build-chain-pull-full-downstream.js. githubInformation",l);n.debug("build-chain-pull-full-downstream.js. config",f);await c(p,u)}async function executeFromEvent(e,t,r,n){await execute(e,t,r,n,undefined,{isArchiveArtifacts:true})}async function executeLocally(e,t,r,i,c,a={}){n.info(`Executing pull request flow for ${c} in ${i}`);a.isArchiveArtifacts=false;const u=await s(t,c);o(r,c,u);await execute(e,t,r,u,i,a)}e.exports={executeLocally:executeLocally,executeFromEvent:executeFromEvent}},,,function(e,t,r){"use strict";const n=r(676).fromCallback;e.exports={copy:n(r(595))}},,,,,,,,,,,function(e,t,r){const{checkoutDefinitionTree:n,getPlaceHolders:o}=r(330);const{executeBuild:i}=r(11);const{getTreeForProject:s,parentChainFromNode:c}=r(352);const{printCheckoutInformation:a,printExecutionPlan:u}=r(656);const{logger:l}=r(79);const f=r(470);const{archiveArtifacts:p}=r(503);const{execute:d}=r(99);const{execute:h}=r(153);async function start(e,t={skipProjectCheckout:new Map,isArchiveArtifacts:true,skipCheckout:false,skipExecution:false}){l.debug("pull-request-flow.js options",t);const r={urlPlaceHolders:await o(e,e.config.github.inputs.definitionFile),token:e.token};l.debug("pull-request-flow.js readerOptions",r);if(!t.skipExecution){await d(e.config.github.inputs.definitionFile,r)}const m=e.config.github.inputs.startingProject?e.config.github.inputs.startingProject:e.config.github.repository;l.debug("pull-request-flow.js projectTriggeringJob",m);const g=await s(e.config.github.inputs.definitionFile,m,r);l.debug("pull-request-flow.js definitionTree",g);const w=await c(g);l.debug("pull-request-flow.js nodeChain",w);if(!t.skipExecution){f.startGroup(`[Pull Request Flow] Execution Plan...`);u(w,m);f.endGroup()}f.startGroup(`[Pull Request Flow] Checking out ${e.config.github.groupProject} and its dependencies`);l.info(`Tree for project ${m}. Dependencies: ${w.map(e=>"\n"+e.project)}`);const y=await n(e,w,"pr",t);f.endGroup();f.startGroup(`[Pull Request Flow] Checkout Summary...`);a(y);f.endGroup();if(!t.skipExecution){const n=await i(e.config.rootFolder,w,m,t).then(()=>true).catch(e=>e);if(t.isArchiveArtifacts){f.startGroup(`[Pull Request Flow] Archiving artifacts...`);await p(w.find(e=>e.project===m),w,n===true?["success","always"]:["failure","always"]);f.endGroup()}else{l.info("Archive artifact won't be executed")}await h(e.config.github.inputs.definitionFile,n,r);if(n!==true){l.error(n);throw new Error(`Command executions have failed, please review latest execution ${n}`)}}else{l.info("Execution has been skipped.")}}e.exports={start:start}},,function(e){e.exports={warn:"warn",error:"error",ignore:"ignore"}},,,,,,,function(e){e.exports=require("stream")},,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},,,function(e,t,r){const n=r(747);const{getUrlContent:o}=r(593);const{treatUrl:i,treatMapping:s}=r(824);const{validateDefinition:c,validateDependencies:a}=r(127);const{read:u}=r(674);async function readDefinitionFile(e,t={urlPlaceHolders:{},token:undefined}){return e.startsWith("http")?readDefinitionFileFromUrl(e,t):readDefinitionFileFromFile(e,t.urlPlaceHolders)}async function readDefinitionFileFromFile(e,t={urlPlaceHolders:{},token:undefined}){const r=n.readFileSync(e,"utf8");return loadYaml(u(r),e.substring(0,e.lastIndexOf("/")),r,t)}async function readDefinitionFileFromUrl(e,t={urlPlaceHolders:{},token:undefined}){const r=i(e,t.urlPlaceHolders);return loadYaml(u(await o(r,t.token)),"./",e,t)}async function loadYaml(e,t,r,n={urlPlaceHolders:{},token:undefined}){c(e);e.dependencies=await loadDependencies(e.dependencies,t,r,n);if(e.dependencies){e.dependencies.filter(e=>e.mapping).map(e=>e.mapping).forEach(e=>s(e))}return e}async function loadDependencies(e,t,r,s={urlPlaceHolders:{},token:undefined}){let c=e;if(e){if(r.startsWith("http")&&!Array.isArray(e)&&!e.startsWith("http")){const t=i(r,s.urlPlaceHolders);c=`${t.substring(0,t.lastIndexOf("/"))}/${e}`;const a=await o(c,s.token);n.writeFileSync(e,a)}if(!Array.isArray(e)){const r=e.startsWith("http")?i(e,s.urlPlaceHolders):`${t}/${e}`;const l=e.startsWith("http")?await o(r,s.token):n.readFileSync(r,"utf8");const f=u(l);a(f);return(await loadDependencies(f.extends,r.substring(0,r.lastIndexOf("/")),c,s)).concat(f.dependencies)}else{return e}}else{return[]}}e.exports={readDefinitionFile:readDefinitionFile}},,,,,,,,,,function(e,t,r){"use strict";var n=r(945);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},,,,function(e,t,r){var n=r(747);var o;if(process.platform==="win32"||global.TESTING_WINDOWS){o=r(818)}else{o=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)}})})}o(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 o.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},function(e,t,r){e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var o=r(622);var i=n?";":":";var s=r(813);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||i;var o=t.path||process.env.PATH||"";var s=[""];o=o.split(r);var c="";if(n){o.unshift(process.cwd());c=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";s=c.split(r);if(e.indexOf(".")!==-1&&s[0]!=="")s.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))o=[""];return{env:o,ext:s,extExe:c}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var i=n.env;var c=n.ext;var a=n.extExe;var u=[];(function F(n,l){if(n===l){if(t.all&&u.length)return r(null,u);else return r(getNotFoundError(e))}var f=i[n];if(f.charAt(0)==='"'&&f.slice(-1)==='"')f=f.slice(1,-1);var p=o.join(f,e);if(!f&&/^\.[\\\/]/.test(e)){p=e.slice(0,2)+p}(function E(e,o){if(e===o)return F(n+1,l);var i=c[e];s(p+i,{pathExt:a},function(n,s){if(!n&&s){if(t.all)u.push(p+i);else return r(null,p+i)}return E(e+1,o)})})(0,c.length)})(0,i.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var i=r.ext;var c=r.extExe;var a=[];for(var u=0,l=n.length;uo.normalize(e).split(o.sep)).reduce((e,t)=>{r=Math.min(r,t.length);e.push(t);return e},[]);if(e[0].startsWith(o.sep)){t.push(o.sep)}let i=0;function isPathTheSame(){const e=n[0][i];for(let t=1;te.toLowerCase()).find(t=>t===e.toLowerCase())){u.info(`Uploads are case insensitive: ${e} was detected that it will be overwritten by another file with the same path`)}}}return r}function getRootDirectory(e,t){const r=e.getSearchPaths();if(r.length>1){u.info(`Multiple search paths detected. Calculating the least common ancestor of all paths`);const e=getMultiPathLCA(r);u.info(`The least common ancestor is ${e}. This will be the root directory of the artifact`);return e}return t.length===1&&r[0]===t[0]?s(t[0]):r[0]}function getDefaultGlobOptions(){return{followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true}}e.exports={findFilesToUpload:findFilesToUpload}},,,,,function(module,__unusedexports,__webpack_require__){const{logger:logger}=__webpack_require__(979);function executeUrlExpressions(url){let result=url;const expression=/%{([^%]+)}/g;let match;while(match=expression.exec(url)){logger.info(`Expression found in URL ${result}.`);logger.info(`Expression: ${match[1]}.`);try{const expressionEvalResult=eval(match[1]);logger.info(`Expression Result: ${expressionEvalResult}.`);result=result.replace(`%{${match[1]}}`,expressionEvalResult);logger.emptyLine()}catch(e){logger.error(`Error evaluating expression \`${match[1]}\` for url: \`${result}\``,e);throw e}}return result}function treatUrl(e,t){let r=e;if(t){Object.entries(t).forEach(([e,t])=>r=r.replace(new RegExp(`\\$\\{${e}(:[^}]+)?}`,"gi"),t))}return executeUrlExpressions(r)}function treatMapping(e){if(e){treatMappingDependencies(e.dependencies);treatMappingDependencies(e.dependant)}}function treatMappingDependencies(mappingDependencies){Object.values(mappingDependencies||[]).forEach(mappingElement=>mappingElement.filter(e=>e.targetExpression).forEach(mapping=>{try{mapping.target=eval(mapping.targetExpression)}catch(e){logger.error(`Error evaluating expression \`${mapping.targetExpression}\` for source: \`${mapping.source}\``,e);mapping.target=undefined}}))}module.exports={treatUrl:treatUrl,treatMapping:treatMapping,executeUrlExpressions:executeUrlExpressions}},,,,function(e,t,r){const n=r(226);const o=r(622);function copyNodeFolder(e,t,r){if(r){const i=(typeof r==="string"?[r]:r).map(r=>{const i=o.join(e,r);try{n.copySync(t,i)}catch(e){throw new Error(`Error copying project folder from ${t} to ${i}. Message: ${e}`)}return{original:r,to:i}});return i.map(e=>{const r=o.join(t,e.original);moveFolder(e.to,r);return r})}return undefined}function moveFolder(e,t){try{n.moveSync(e,t)}catch(r){throw new Error(`Error moving project folder from ${e} to ${t}. Message: ${r}`)}}e.exports={copyNodeFolder:copyNodeFolder}},,,,,,,function(e){e.exports=require("url")},,,,function(e,t,r){"use strict";var n;try{var o=require;n=o("esprima")}catch(e){if(typeof window!=="undefined")n=window.esprima}var i=r(945);function resolveJavascriptFunction(e){if(e===null)return false;try{var t="("+e+")",r=n.parse(t,{range:true});if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(e){return false}}function constructJavascriptFunction(e){var t="("+e+")",r=n.parse(t,{range:true}),o=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}r.body[0].expression.params.forEach(function(e){o.push(e.name)});i=r.body[0].expression.body.range;if(r.body[0].expression.body.type==="BlockStatement"){return new Function(o,t.slice(i[0]+1,i[1]-1))}return new Function(o,"return "+t.slice(i[0],i[1]))}function representJavascriptFunction(e){return e.toString()}function isFunction(e){return Object.prototype.toString.call(e)==="[object Function]"}e.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},,function(e,t,r){"use strict";var n=r(945);var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(o.exec(e)!==null)return true;if(i.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,s,c,a,u,l=0,f=null,p,d,h;t=o.exec(e);if(t===null)t=i.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;s=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,s))}c=+t[4];a=+t[5];u=+t[6];if(t[7]){l=t[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(t[9]){p=+t[10];d=+(t[11]||0);f=(p*60+d)*6e4;if(t[9]==="-")f=-f}h=new Date(Date.UTC(r,n,s,c,a,u,l));if(f)h.setTime(h.getTime()-f);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},function(e,t,r){"use strict";var n=r(945);var o=Object.prototype.hasOwnProperty;var i=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,s,c,a,u=e;for(r=0,n=u.length;r{if(s)return n(s);if(a)return n(null);l(e,t,(s,a)=>{if(s)return n(s);e=a.toDst;d(a.toCwd,r,(r,s)=>{if(r)return n(r);const a=o.dirname(t);m(a,(r,o)=>{if(r)return n(r);if(o)return i.symlink(e,t,s,n);c(a,r=>{if(r)return n(r);i.symlink(e,t,s,n)})})})})})}function createSymlinkSync(e,t,r){const n=i.existsSync(t);if(n)return undefined;const s=f(e,t);e=s.toDst;r=h(s.toCwd,r);const c=o.dirname(t);const u=i.existsSync(c);if(u)return i.symlinkSync(e,t,r);a(c);return i.symlinkSync(e,t,r)}e.exports={createSymlink:n(createSymlink),createSymlinkSync:createSymlinkSync}},,,,,,function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=o(r(747));const s=o(r(470));const c=o(r(761));const a=r(870);const u=r(835);const l=r(176);const f=r(630);const p=r(452);const d=r(401);class DownloadHttpClient{constructor(){this.downloadHttpManager=new p.HttpManager(d.getDownloadFileConcurrency(),"@actions/artifact-download");this.statusReporter=new l.StatusReporter(1e3)}listArtifacts(){return n(this,void 0,void 0,function*(){const e=a.getArtifactUrl();const t=this.downloadHttpManager.getClient(0);const r=a.getDownloadHeaders("application/json");const n=yield t.get(e,r);const o=yield n.readBody();if(a.isSuccessStatusCode(n.message.statusCode)&&o){return JSON.parse(o)}a.displayHttpDiagnostics(n);throw new Error(`Unable to list artifacts for the run. Resource Url ${e}`)})}getContainerItems(e,t){return n(this,void 0,void 0,function*(){const r=new u.URL(t);r.searchParams.append("itemPath",e);const n=this.downloadHttpManager.getClient(0);const o=a.getDownloadHeaders("application/json");const i=yield n.get(r.toString(),o);const s=yield i.readBody();if(a.isSuccessStatusCode(i.message.statusCode)&&s){return JSON.parse(s)}a.displayHttpDiagnostics(i);throw new Error(`Unable to get ContainersItems from ${r}`)})}downloadSingleArtifact(e){return n(this,void 0,void 0,function*(){const t=d.getDownloadFileConcurrency();s.debug(`Download file concurrency is set to ${t}`);const r=[...new Array(t).keys()];let o=0;let i=0;s.info(`Total number of files that will be downloaded: ${e.length}`);this.statusReporter.setTotalNumberOfFilesToProcess(e.length);this.statusReporter.start();yield Promise.all(r.map(t=>n(this,void 0,void 0,function*(){while(o{throw new Error(`Unable to download the artifact: ${e}`)}).finally(()=>{this.statusReporter.stop();this.downloadHttpManager.disposeAndReplaceAllClients()})})}downloadIndividualFile(e,t,r){return n(this,void 0,void 0,function*(){let o=0;const c=d.getRetryLimit();const u=i.createWriteStream(r);const l=a.getDownloadHeaders("application/json",true,true);const f=()=>n(this,void 0,void 0,function*(){const r=this.downloadHttpManager.getClient(e);return yield r.get(t,l)});const p=e=>{return"content-encoding"in e&&e["content-encoding"]==="gzip"};const h=r=>n(this,void 0,void 0,function*(){o++;if(o>c){return Promise.reject(new Error(`Retry limit has been reached. Unable to download ${t}`))}else{this.downloadHttpManager.disposeAndReplaceClient(e);if(r){s.info(`Backoff due to too many requests, retry #${o}. Waiting for ${r} milliseconds before continuing the download`);yield new Promise(e=>setTimeout(e,r))}else{const e=a.getExponentialRetryTimeInMilliseconds(o);s.info(`Exponential backoff for retry #${o}. Waiting for ${e} milliseconds before continuing the download`);yield new Promise(t=>setTimeout(t,e))}s.info(`Finished backoff for retry #${o}, continuing with download`)}});while(o<=c){let e;try{e=yield f()}catch(e){s.info("An error occurred while attempting to download a file");console.log(e);yield h();continue}if(a.isSuccessStatusCode(e.message.statusCode)){return this.pipeResponseToFile(e,u,p(e.message.headers))}else if(a.isRetryableStatusCode(e.message.statusCode)){s.info(`A ${e.message.statusCode} response code has been received while attempting to download an artifact`);a.isThrottledStatusCode(e.message.statusCode)?yield h(a.tryGetRetryAfterValueTimeInMilliseconds(e.message.headers)):yield h()}else{a.displayHttpDiagnostics(e);return Promise.reject(new Error(`Unexpected http ${e.message.statusCode} during download for ${t}`))}}})}pipeResponseToFile(e,t,r){return n(this,void 0,void 0,function*(){yield new Promise((n,o)=>{if(r){const r=c.createGunzip();e.message.pipe(r).pipe(t).on("close",()=>{n()}).on("error",e=>{s.error(`An error has been encountered while decompressing and writing a downloaded file to ${t.path}`);o(e)})}else{e.message.pipe(t).on("close",()=>{n()}).on("error",e=>{s.error(`An error has been encountered while writing a downloaded file to ${t.path}`);o(e)})}});return})}}t.DownloadHttpClient=DownloadHttpClient},function(e,t,r){t.alphasort=alphasort;t.alphasorti=alphasorti;t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=r(622);var o=r(571);var i=r(681);var s=o.Minimatch;function alphasorti(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function alphasort(e,t){return e.localeCompare(t)}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new s(r,{dot:true})}return{matcher:new s(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var o=process.cwd();if(!ownProp(r,"cwd"))e.cwd=o;else{e.cwd=n.resolve(r.cwd);e.changedCwd=e.cwd!==o}e.root=r.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=i(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;e.minimatch=new s(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var n=0,o=e.matches.length;n"}t.getUserAgent=getUserAgent},,,,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 o=r[0].split("/").pop();var i=r[1];return o==="env"?i:o+(i?" "+i:"")}},,,function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(598);const i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>{return typeof o[e]==="function"});Object.keys(o).forEach(e=>{if(e==="promises"){return}t[e]=o[e]});i.forEach(e=>{t[e]=n(o[e])});t.exists=function(e,t){if(typeof t==="function"){return o.exists(e,t)}return new Promise(t=>{return o.exists(e,t)})};t.read=function(e,t,r,n,i,s){if(typeof s==="function"){return o.read(e,t,r,n,i,s)}return new Promise((s,c)=>{o.read(e,t,r,n,i,(e,t,r)=>{if(e)return c(e);s({bytesRead:t,buffer:r})})})};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return o.write(e,t,...r)}return new Promise((n,i)=>{o.write(e,t,...r,(e,t,r)=>{if(e)return i(e);n({bytesWritten:t,buffer:r})})})};if(typeof o.writev==="function"){t.writev=function(e,t,...r){if(typeof r[r.length-1]==="function"){return o.writev(e,t,...r)}return new Promise((n,i)=>{o.writev(e,t,...r,(e,t,r)=>{if(e)return i(e);n({bytesWritten:t,buffers:r})})})}}if(typeof o.realpath.native==="function"){t.realpath.native=n(o.realpath.native)}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const o=r(470);const i=r(747);const s=r(539);const c=r(336);const a=r(401);function getExponentialRetryTimeInMilliseconds(e){if(e<0){throw new Error("RetryCount should not be negative")}else if(e===0){return a.getInitialRetryIntervalInMilliseconds()}const t=a.getInitialRetryIntervalInMilliseconds()*a.getRetryMultiplier()*e;const r=t*a.getRetryMultiplier();return Math.random()*(r-t)+t}t.getExponentialRetryTimeInMilliseconds=getExponentialRetryTimeInMilliseconds;function parseEnvNumber(e){const t=Number(process.env[e]);if(Number.isNaN(t)||t<0){return undefined}return t}t.parseEnvNumber=parseEnvNumber;function getApiVersion(){return"6.0-preview"}t.getApiVersion=getApiVersion;function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isForbiddenStatusCode(e){if(!e){return false}return e===s.HttpCodes.Forbidden}t.isForbiddenStatusCode=isForbiddenStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[s.HttpCodes.BadGateway,s.HttpCodes.ServiceUnavailable,s.HttpCodes.GatewayTimeout,s.HttpCodes.TooManyRequests,413];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function isThrottledStatusCode(e){if(!e){return false}return e===s.HttpCodes.TooManyRequests}t.isThrottledStatusCode=isThrottledStatusCode;function tryGetRetryAfterValueTimeInMilliseconds(e){if(e["retry-after"]){const t=Number(e["retry-after"]);if(!isNaN(t)){o.info(`Retry-After header is present with a value of ${t}`);return t*1e3}o.info(`Returned retry-after header value: ${t} is non-numeric and cannot be used`);return undefined}o.info(`No retry-after header was found. Dumping all headers for diagnostic purposes`);console.log(e);return undefined}t.tryGetRetryAfterValueTimeInMilliseconds=tryGetRetryAfterValueTimeInMilliseconds;function getContentRange(e,t,r){return`bytes ${e}-${t}/${r}`}t.getContentRange=getContentRange;function getDownloadHeaders(e,t,r){const n={};if(e){n["Content-Type"]=e}if(t){n["Connection"]="Keep-Alive";n["Keep-Alive"]="10"}if(r){n["Accept-Encoding"]="gzip";n["Accept"]=`application/octet-stream;api-version=${getApiVersion()}`}else{n["Accept"]=`application/json;api-version=${getApiVersion()}`}return n}t.getDownloadHeaders=getDownloadHeaders;function getUploadHeaders(e,t,r,n,o,i){const s={};s["Accept"]=`application/json;api-version=${getApiVersion()}`;if(e){s["Content-Type"]=e}if(t){s["Connection"]="Keep-Alive";s["Keep-Alive"]="10"}if(r){s["Content-Encoding"]="gzip";s["x-tfs-filelength"]=n}if(o){s["Content-Length"]=o}if(i){s["Content-Range"]=i}return s}t.getUploadHeaders=getUploadHeaders;function createHttpClient(e){return new s.HttpClient(e,[new c.BearerCredentialHandler(a.getRuntimeToken())])}t.createHttpClient=createHttpClient;function getArtifactUrl(){const e=`${a.getRuntimeUrl()}_apis/pipelines/workflows/${a.getWorkFlowRunId()}/artifacts?api-version=${getApiVersion()}`;o.debug(`Artifact Url: ${e}`);return e}t.getArtifactUrl=getArtifactUrl;function displayHttpDiagnostics(e){o.info(`##### Begin Diagnostic HTTP information #####\nStatus Code: ${e.message.statusCode}\nStatus Message: ${e.message.statusMessage}\nHeader Information: ${JSON.stringify(e.message.headers,undefined,2)}\n###### End Diagnostic HTTP information ######`)}t.displayHttpDiagnostics=displayHttpDiagnostics;const u=['"',":","<",">","|","*","?"];const l=[...u,"\\","/"];function checkArtifactName(e){if(!e){throw new Error(`Artifact name: ${e}, is incorrectly provided`)}for(const t of l){if(e.includes(t)){throw new Error(`Artifact name is not valid: ${e}. Contains character: "${t}". Invalid artifact name characters include: ${l.toString()}.`)}}}t.checkArtifactName=checkArtifactName;function checkArtifactFilePath(e){if(!e){throw new Error(`Artifact path: ${e}, is incorrectly provided`)}for(const t of u){if(e.includes(t)){throw new Error(`Artifact path is not valid: ${e}. Contains character: "${t}". Invalid characters include: ${u.toString()}.`)}}}t.checkArtifactFilePath=checkArtifactFilePath;function createDirectoriesForArtifact(e){return n(this,void 0,void 0,function*(){for(const t of e){yield i.promises.mkdir(t,{recursive:true})}})}t.createDirectoriesForArtifact=createDirectoriesForArtifact;function createEmptyFilesForArtifact(e){return n(this,void 0,void 0,function*(){for(const t of e){yield(yield i.promises.open(t,"w")).close()}})}t.createEmptyFilesForArtifact=createEmptyFilesForArtifact},,,,,function(e,t,r){const{promisify:n}=r(669);const o=r(402);e.exports.fileSync=o.fileSync;const i=n((e,t)=>o.file(e,(e,r,o,i)=>e?t(e):t(undefined,{path:r,fd:o,cleanup:n(i)})));e.exports.file=(async e=>i(e));e.exports.withFile=async function withFile(t,r){const{path:n,fd:o,cleanup:i}=await e.exports.file(r);try{return await t({path:n,fd:o})}finally{await i()}};e.exports.dirSync=o.dirSync;const s=n((e,t)=>o.dir(e,(e,r,o)=>e?t(e):t(undefined,{path:r,cleanup:n(o)})));e.exports.dir=(async e=>s(e));e.exports.withDir=async function withDir(t,r){const{path:n,cleanup:o}=await e.exports.dir(r);try{return await t({path:n})}finally{await o()}};e.exports.tmpNameSync=o.tmpNameSync;e.exports.tmpName=n(o.tmpName);e.exports.tmpdir=o.tmpdir;e.exports.setGracefulCleanup=o.setGracefulCleanup},,,,,,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,o){if(t==="exit"){const t=verifyENOENT(o,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}},,,,,,,function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=o(r(747));const s=o(r(470));const c=o(r(875));const a=o(r(794));const u=r(870);const l=r(401);const f=r(669);const p=r(835);const d=r(630);const h=r(176);const m=r(452);const g=r(647);const w=f.promisify(i.stat);class UploadHttpClient{constructor(){this.uploadHttpManager=new m.HttpManager(l.getUploadFileConcurrency(),"@actions/artifact-upload");this.statusReporter=new h.StatusReporter(1e4)}createArtifactInFileContainer(e){return n(this,void 0,void 0,function*(){const t={Type:"actions_storage",Name:e};const r=JSON.stringify(t,null,2);const n=u.getArtifactUrl();const o=this.uploadHttpManager.getClient(0);const i=u.getUploadHeaders("application/json",false);const s=yield o.post(n,r,i);const c=yield s.readBody();if(u.isSuccessStatusCode(s.message.statusCode)&&c){return JSON.parse(c)}else if(u.isForbiddenStatusCode(s.message.statusCode)){throw new Error(`Artifact storage quota has been hit. Unable to upload any new artifacts`)}else{u.displayHttpDiagnostics(s);throw new Error(`Unable to create a container for the artifact ${e} at ${n}`)}})}uploadArtifactToFileContainer(e,t,r){return n(this,void 0,void 0,function*(){const o=l.getUploadFileConcurrency();const i=l.getUploadChunkSize();s.debug(`File Concurrency: ${o}, and Chunk Size: ${i}`);const c=[];let a=true;if(r){if(r.continueOnError===false){a=false}}for(const r of t){const t=new p.URL(e);t.searchParams.append("itemPath",r.uploadFilePath);c.push({file:r.absoluteFilePath,resourceUrl:t.toString(),maxChunkSize:i,continueOnError:a})}const u=[...new Array(o).keys()];const f=[];let h=0;let m=0;let g=0;let w=0;let y=false;this.statusReporter.setTotalNumberOfFilesToProcess(t.length);this.statusReporter.start();yield Promise.all(u.map(e=>n(this,void 0,void 0,function*(){while(hi.createReadStream(t.file));f=false;l=r}else{c=(()=>{const e=new a.PassThrough;e.end(n);return e});l=n.byteLength}const p=yield this.uploadChunk(e,t.resourceUrl,c,0,l-1,l,f,r);if(!p){o=false;u+=l;s.warning(`Aborting upload for ${t.file} due to failure`)}return{isSuccess:o,successfulUploadSize:l-u,totalSize:r}}else{const a=yield c.file();l=yield g.createGZipFileOnDisk(t.file,a.path);let p=a.path;if(r104857600){this.statusReporter.updateLargeFileStatus(t.file,n,l)}const a=n;const h=n+c-1;n+=t.maxChunkSize;if(d){u+=c;continue}const m=yield this.uploadChunk(e,t.resourceUrl,()=>i.createReadStream(p,{start:a,end:h,autoClose:false}),a,h,l,f,r);if(!m){o=false;u+=c;s.warning(`Aborting upload for ${t.file} due to failure`);d=true}}yield a.cleanup();return{isSuccess:o,successfulUploadSize:l-u,totalSize:r}}})}uploadChunk(e,t,r,o,i,c,a,f){return n(this,void 0,void 0,function*(){const p=u.getUploadHeaders("application/octet-stream",true,a,f,i-o+1,u.getContentRange(o,i,c));const d=()=>n(this,void 0,void 0,function*(){const n=this.uploadHttpManager.getClient(e);return yield n.sendStream("PUT",t,r(),p)});let h=0;const m=l.getRetryLimit();const g=e=>{h++;if(h>m){if(e){u.displayHttpDiagnostics(e)}s.info(`Retry limit has been reached for chunk at offset ${o} to ${t}`);return true}return false};const w=t=>n(this,void 0,void 0,function*(){this.uploadHttpManager.disposeAndReplaceClient(e);if(t){s.info(`Backoff due to too many requests, retry #${h}. Waiting for ${t} milliseconds before continuing the upload`);yield new Promise(e=>setTimeout(e,t))}else{const e=u.getExponentialRetryTimeInMilliseconds(h);s.info(`Exponential backoff for retry #${h}. Waiting for ${e} milliseconds before continuing the upload at offset ${o}`);yield new Promise(t=>setTimeout(t,e))}s.info(`Finished backoff for retry #${h}, continuing with upload`);return});while(h<=m){let r;try{r=yield d()}catch(t){s.info(`An error has been caught http-client index ${e}, retrying the upload`);console.log(t);if(g()){return false}yield w();continue}yield r.readBody();if(u.isSuccessStatusCode(r.message.statusCode)){return true}else if(u.isRetryableStatusCode(r.message.statusCode)){s.info(`A ${r.message.statusCode} status code has been received, will attempt to retry the upload`);if(g(r)){return false}u.isThrottledStatusCode(r.message.statusCode)?yield w(u.tryGetRetryAfterValueTimeInMilliseconds(r.message.headers)):yield w()}else{s.error(`Unexpected response. Unable to upload chunk to ${t}`);u.displayHttpDiagnostics(r);return false}}return false})}patchArtifactSize(e,t){return n(this,void 0,void 0,function*(){const r=u.getUploadHeaders("application/json",false);const n=new p.URL(u.getArtifactUrl());n.searchParams.append("artifactName",t);const o={Size:e};const i=JSON.stringify(o,null,2);s.debug(`URL is ${n.toString()}`);const c=this.uploadHttpManager.getClient(0);const a=yield c.patch(n.toString(),i,r);const l=yield a.readBody();if(u.isSuccessStatusCode(a.message.statusCode)){s.debug(`Artifact ${t} has been successfully uploaded, total size in bytes: ${e}`)}else if(a.message.statusCode===404){throw new Error(`An Artifact with the name ${t} was not found`)}else{u.displayHttpDiagnostics(a);s.info(l);throw new Error(`Unable to finish uploading artifact ${t} to ${n}`)}})}}t.UploadHttpClient=UploadHttpClient},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(448);var o=r(189);var i=r(299);var s=r(482);const c="17.11.2";const a=n.Octokit.plugin(o.requestLog,s.restEndpointMethods,i.paginateRest).defaults({userAgent:`octokit-rest.js/${c}`});t.Octokit=a},,,,,,,function(e){e.exports=function(e,r){var n=[];for(var o=0;o{if(s.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e},{});const i=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(c.test(i)){o.url=i.replace(c,"/api/graphql")}return e(o).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new GraphqlError(o,{headers:t,data:e.data})}return e.data.data})}function withDefaults(e,t){const r=e.defaults(t);const o=(e,t)=>{return graphql(r,e,t)};return Object.assign(o,{defaults:withDefaults.bind(null,r),endpoint:n.request.endpoint})}const a=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${i} ${o.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=a;t.withCustomRequest=withCustomRequest},,function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(622);const i=r(598);const s=r(727);const c=r(322).pathExists;function createLink(e,t,r){function makeLink(e,t){i.link(e,t,e=>{if(e)return r(e);r(null)})}c(t,(n,a)=>{if(n)return r(n);if(a)return r(null);i.lstat(e,n=>{if(n){n.message=n.message.replace("lstat","ensureLink");return r(n)}const i=o.dirname(t);c(i,(n,o)=>{if(n)return r(n);if(o)return makeLink(e,t);s.mkdirs(i,n=>{if(n)return r(n);makeLink(e,t)})})})})}function createLinkSync(e,t){const r=i.existsSync(t);if(r)return undefined;try{i.lstatSync(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const n=o.dirname(t);const c=i.existsSync(n);if(c)return i.linkSync(e,t);s.mkdirsSync(n);return i.linkSync(e,t)}e.exports={createLink:n(createLink),createLinkSync:createLinkSync}},,,,,,,,,,function(e,t,r){"use strict";var n=r(43);e.exports=n.DEFAULT=new n({include:[r(723)],explicit:[r(386),r(629),r(839)]})},,,function(e,t,r){"use strict";var n;try{var o=require;n=o("buffer").Buffer}catch(e){}var i=r(945);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,o=e.length,i=s;for(r=0;r64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,o=e.replace(/[\r\n=]/g,""),i=o.length,c=s,a=0,u=[];for(t=0;t>16&255);u.push(a>>8&255);u.push(a&255)}a=a<<6|c.indexOf(o.charAt(t))}r=i%4*6;if(r===0){u.push(a>>16&255);u.push(a>>8&255);u.push(a&255)}else if(r===18){u.push(a>>10&255);u.push(a>>2&255)}else if(r===12){u.push(a>>4&255)}if(n){return n.from?n.from(u):new n(u)}return u}function representYamlBinary(e){var t="",r=0,n,o,i=e.length,c=s;for(n=0;n>18&63];t+=c[r>>12&63];t+=c[r>>6&63];t+=c[r&63]}r=(r<<8)+e[n]}o=i%3;if(o===0){t+=c[r>>18&63];t+=c[r>>12&63];t+=c[r>>6&63];t+=c[r&63]}else if(o===2){t+=c[r>>10&63];t+=c[r>>4&63];t+=c[r<<2&63];t+=c[64]}else if(o===1){t+=c[r>>2&63];t+=c[r<<4&63];t+=c[64];t+=c[64]}return t}function isBinary(e){return n&&n.isBuffer(e)}e.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},,,function(e,t,r){"use strict";const n=r(598);function utimesMillis(e,t,r,o){n.open(e,"r+",(e,i)=>{if(e)return o(e);n.futimes(i,t,r,e=>{n.close(i,t=>{if(o)o(e||t)})})})}function utimesMillisSync(e,t,r){const o=n.openSync(e,"r+");n.futimesSync(o,t,r);return n.closeSync(o)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},,,,,function(e,t,r){"use strict";var n=r(945);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(357);const o=r(87);const i=r(622);const s=r(972);const c=r(571);const a=r(327);const u=r(383);const l=process.platform==="win32";class Pattern{constructor(e,t){this.negate=false;let r;if(typeof e==="string"){r=e.trim()}else{t=t||[];n(t.length,`Parameter 'segments' must not empty`);const o=Pattern.getLiteral(t[0]);n(o&&s.hasAbsoluteRoot(o),`Parameter 'segments' first element must be a root path`);r=new u.Path(t).toString().trim();if(e){r=`!${r}`}}while(r.startsWith("!")){this.negate=!this.negate;r=r.substr(1).trim()}r=Pattern.fixupPattern(r);this.segments=new u.Path(r).segments;this.trailingSeparator=s.normalizeSeparators(r).endsWith(i.sep);r=s.safeTrimTrailingSeparator(r);let o=false;const a=this.segments.map(e=>Pattern.getLiteral(e)).filter(e=>!o&&!(o=e===""));this.searchPath=new u.Path(a).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(a[0]),l?"i":"");const f={dot:true,nobrace:true,nocase:l,nocomment:true,noext:true,nonegate:true};r=l?r.replace(/\\/g,"/"):r;this.minimatch=new c.Minimatch(r,f)}match(e){if(this.segments[this.segments.length-1]==="**"){e=s.normalizeSeparators(e);if(!e.endsWith(i.sep)){e=`${e}${i.sep}`}}else{e=s.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?a.MatchKind.Directory:a.MatchKind.All}return a.MatchKind.None}partialMatch(e){e=s.safeTrimTrailingSeparator(e);if(s.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(l?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(l?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e){n(e,"pattern cannot be empty");const t=new u.Path(e).segments.map(e=>Pattern.getLiteral(e));n(t.every((e,t)=>(e!=="."||t===0)&&e!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);n(!s.hasRoot(e)||t[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=s.normalizeSeparators(e);if(e==="."||e.startsWith(`.${i.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${i.sep}`)){const t=o.homedir();n(t,"Unable to determine HOME directory");n(s.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(l&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=s.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(l&&(e==="\\"||e.match(/^\\[^\\]/))){let t=s.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=s.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return s.normalizeSeparators(e)}static getLiteral(e){let t="";for(let r=0;r=0){if(n.length>1){return""}if(n){t+=n;r=o;continue}}}t+=n}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},,,,,,,function(e,t,r){"use strict";const n=r(622);const o=r(598);const i=r(322).pathExists;function symlinkPaths(e,t,r){if(n.isAbsolute(e)){return o.lstat(e,t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})})}else{const s=n.dirname(t);const c=n.join(s,e);return i(c,(t,i)=>{if(t)return r(t);if(i){return r(null,{toCwd:c,toDst:e})}else{return o.lstat(e,t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:n.relative(s,e)})})}})}}function symlinkPathsSync(e,t){let r;if(n.isAbsolute(e)){r=o.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const i=n.dirname(t);const s=n.join(i,e);r=o.existsSync(s);if(r){return{toCwd:s,toDst:e}}else{r=o.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(i,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},,,function(e,t,r){const n=r(470);const{ClientError:o}=r(79);const i=r(357);function getDefinitionFile(){return n.getInput("definition-file")}function getStartingProject(){return n.getInput("starting-project")}function getFlowType(){return n.getInput("flow-type")}function getLoggerLevel(){const e=n.getInput("logger-level");const t=e?e:"info";if(!["info","trace","debug"].includes(t)){throw new o(`invalid 'logger-level' input: ${t}`)}return t}function getAnnotationsPrefix(){const e=n.getInput("annotations-prefix");return e?`[${e}]`:""}function isPullRequestFlowType(){return getFlowType()==="pull-request"}function isFDFlowType(){return getFlowType()==="full-downstream"}function isSingleFlowType(){return getFlowType()==="single"}function isBranchFlowType(){return getFlowType()==="branch"}function eventFlowTypeToCliFlowType(e){i(e,"flow type is not defined for eventFlowTypeToCliFlowType argument");switch(e){case"pull-request":return"pr";case"single":return"single";case"full-downstream":return"fd";default:return undefined}}e.exports={getDefinitionFile:getDefinitionFile,getStartingProject:getStartingProject,getFlowType:getFlowType,getLoggerLevel:getLoggerLevel,getAnnotationsPrefix:getAnnotationsPrefix,isPullRequestFlowType:isPullRequestFlowType,isFDFlowType:isFDFlowType,isSingleFlowType:isSingleFlowType,isBranchFlowType:isBranchFlowType,eventFlowTypeToCliFlowType:eventFlowTypeToCliFlowType}},,,,,,,,,,,,function(e,t,r){"use strict";var n=r(556);var o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var i=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach(function(r){e[r].forEach(function(e){t[String(e)]=r})})}return t}function Type(e,t){t=t||{};Object.keys(t).forEach(function(t){if(o.indexOf(t)===-1){throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}});this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.defaultStyle=t["defaultStyle"]||null;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(i.indexOf(this.kind)===-1){throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},function(e){function treat(e){return`${e} -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B`}e.exports={treat:treat}},function(e,t,r){"use strict";var n=r(945);var o=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,r,n,i,s,c=e;s=new Array(c.length);for(t=0,r=c.length;te.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},,,,,function(e,t,r){"use strict";const n=r(622);const o=r(129);const i=r(20);const s=r(768);const c=r(512);const a=r(323);const u=r(145);const l=r(697);const f=r(260);const p=r(427);const d=r(168);const h=1e3*1e3*10;function handleArgs(e,t,r){let o;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;o={command:e,args:t,options:r,file:e,original:{cmd:e,args:t}}}else{o=i._parse(e,t,r)}r=Object.assign({maxBuffer:h,buffer:true,stripEof:true,preferLocal:true,localDir:o.options.cwd||process.cwd(),encoding:"utf8",reject:true,cleanup:true},o.options);r.stdio=d(r);if(r.preferLocal){r.env=c.env(Object.assign({},r,{cwd:r.localDir}))}if(r.detached){r.cleanup=false}if(process.platform==="win32"&&n.basename(o.command)==="cmd.exe"){o.args.unshift("/q")}return{cmd:o.command,args:o.args,opts:r,parsed:o}}function handleInput(e,t){if(t===null||t===undefined){return}if(a(t)){t.pipe(e.stdin)}else{e.stdin.end(t)}}function handleOutput(e,t){if(t&&e.stripEof){t=s(t)}return t}function handleShell(e,t,r){let n="/bin/sh";let o=["-c",t];r=Object.assign({},r);if(process.platform==="win32"){r.__winShell=true;n=process.env.comspec||"cmd.exe";o=["/s","/c",`"${t}"`];r.windowsVerbatimArguments=true}if(r.shell){n=r.shell;delete r.shell}return e(n,o,r)}function getStream(e,t,{encoding:r,buffer:n,maxBuffer:o}){if(!e[t]){return null}let i;if(!n){i=new Promise((r,n)=>{e[t].once("end",r).once("error",n)})}else if(r){i=u(e[t],{encoding:r,maxBuffer:o})}else{i=u.buffer(e[t],{maxBuffer:o})}return i.catch(e=>{e.stream=t;e.message=`${t} ${e.message}`;throw e})}function makeError(e,t){const{stdout:r,stderr:n}=e;let o=e.error;const{code:i,signal:s}=e;const{parsed:c,joinedCmd:a}=t;const u=t.timedOut||false;if(!o){let e="";if(Array.isArray(c.opts.stdio)){if(c.opts.stdio[2]!=="inherit"){e+=e.length>0?n:`\n${n}`}if(c.opts.stdio[1]!=="inherit"){e+=`\n${r}`}}else if(c.opts.stdio!=="inherit"){e=`\n${n}${r}`}o=new Error(`Command failed: ${a}${e}`);o.code=i<0?p(i):i}o.stdout=r;o.stderr=n;o.failed=true;o.signal=s||null;o.cmd=a;o.timedOut=u;return o}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:s,buffer:c,maxBuffer:a}=n.opts;const u=joinCmd(e,t);let p;try{p=o.spawn(n.cmd,n.args,n.opts)}catch(e){return Promise.reject(e)}let d;if(n.opts.cleanup){d=f(()=>{p.kill()})}let h=null;let m=false;const g=()=>{if(h){clearTimeout(h);h=null}if(d){d()}};if(n.opts.timeout>0){h=setTimeout(()=>{h=null;m=true;p.kill(n.opts.killSignal)},n.opts.timeout)}const w=new Promise(e=>{p.on("exit",(t,r)=>{g();e({code:t,signal:r})});p.on("error",t=>{g();e({error:t})});if(p.stdin){p.stdin.on("error",t=>{g();e({error:t})})}});function destroy(){if(p.stdout){p.stdout.destroy()}if(p.stderr){p.stderr.destroy()}}const y=()=>l(Promise.all([w,getStream(p,"stdout",{encoding:s,buffer:c,maxBuffer:a}),getStream(p,"stderr",{encoding:s,buffer:c,maxBuffer:a})]).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:u,parsed:n,timedOut:m});e.killed=e.killed||p.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:u,timedOut:false}}),destroy);i._enoent.hookChildProcess(p,n.parsed);handleInput(p,n.opts.input);p.then=((e,t)=>y().then(e,t));p.catch=(e=>y().catch(e));return p});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 i=joinCmd(e,t);if(a(n.opts.input)){throw new TypeError("The `input` option cannot be a stream in sync mode")}const s=o.spawnSync(n.cmd,n.args,n.opts);s.code=s.status;if(s.error||s.status!==0||s.signal!==null){const e=makeError(s,{joinedCmd:i,parsed:n});if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,s.stdout),stderr:handleOutput(n.opts,s.stderr),code:0,failed:false,signal:null,cmd:i,timedOut:false}});e.exports.shellSync=((t,r)=>handleShell(e.exports.sync,t,r))},,,,function(e,t,r){"use strict";e.exports={moveSync:r(95)}},,,,,,,function(e,t,r){"use strict";const{PassThrough:n}=r(794);e.exports=(e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:r}=e;const o=r==="buffer";let i=false;if(t){i=!(r||o)}else{r=r||"utf8"}if(o){r=null}let s=0;const c=[];const a=new n({objectMode:i});if(r){a.setEncoding(r)}a.on("data",e=>{c.push(e);if(i){s=c.length}else{s+=e.length}});a.getBufferedValue=(()=>{if(t){return c}return o?Buffer.concat(c,s):c.join("")});a.getBufferedLength=(()=>s);return a})},,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(357);const o=r(622);const i=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(i&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=o.dirname(e);if(i&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){n(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);n(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(i){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();n(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();n(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}n(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||i&&e.endsWith("\\")){}else{e+=o.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){n(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(i){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){n(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(i){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(i){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(o.sep)){return e}if(e===o.sep){return e}if(i&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},,,function(e,t,r){"use strict";const n=r(598);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);n.lstat(e,(e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file";r(null,t)})}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},,,,function(e,t,r){const n=r(669);const o=r(765);class ClientError extends Error{}class TimeoutError extends Error{}function log(e,t){if(o.env.NODE_ENV!=="test"){const r=t.map(e=>typeof e==="object"?inspect(e):e);if(e){console.log.apply(console,[e,...r])}else{console.log.apply(console,r)}}}const i={level:"info",trace:(...e)=>{if(i.level==="trace"){log("[TRACE]",e)}},debug:(...e)=>{if(i.level==="trace"||i.level==="debug"){log("DEBUG",e)}},emptyLine:()=>log("",[]),info:(...e)=>log("[INFO] ",e),warn:(...e)=>log("[WARN] ",e),error:(...e)=>{if(e.length===1){if(e[0]instanceof Error){if(i.level==="trace"||i.level==="debug"){log(null,[e[0].stack||e[0]])}else{log("[ERROR] ",[e[0].message||e[0]])}}}else{log("[ERROR] ",e)}}};function inspect(e){return n.inspect(e,false,null,true)}e.exports={ClientError:ClientError,TimeoutError:TimeoutError,logger:i}},,function(e,t,r){const{getDefinitionFile:n,getStartingProject:o}=r(933);function getInputs(){return{definitionFile:n(),startingProject:o()}}async function createCommonConfig(e,t,r){async function parseGitHub(e,t){return{serverUrl:getServerUrl(t["GITHUB_SERVER_URL"]),serverUrlWithToken:getServerUrl(t["GITHUB_SERVER_URL"],t["GITHUB_TOKEN"]),action:t["GITHUB_ACTION"],sourceGroup:e.sourceGroup,author:e.author,actor:t["GITHUB_ACTOR"],sourceBranch:t["GITHUB_HEAD_REF"]||(t["GITHUB_REF"]?t["GITHUB_REF"].split("refs/heads/").pop():undefined),targetBranch:t["GITHUB_BASE_REF"]||(t["GITHUB_REF"]?t["GITHUB_REF"].split("refs/heads/").pop():undefined),jobId:t["GITHUB_JOB"],sourceRepository:e.sourceRepository,repository:t["GITHUB_REPOSITORY"],group:t["GITHUB_REPOSITORY"].split("/")[0],project:t["GITHUB_REPOSITORY"].split("/")[1],groupProject:t["GITHUB_REPOSITORY"],workflowName:t["GITHUB_WORKFLOW"],ref:t["GITHUB_REF"],inputs:getInputs()}}return{github:await parseGitHub(e,r),rootFolder:t===undefined?r["GITHUB_WORKSPACE"]:t}}function getServerUrl(e,t=undefined){const r=e?e.replace(/\/$/,""):undefined;if(r&&t){return r.replace("://",`://${t}@`)}else{return r}}e.exports={createCommonConfig:createCommonConfig,getInputs:getInputs}},,,,,function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const c=r(304);const a=i(r(686));function exec(e,t,r){return s(this,void 0,void 0,function*(){const n=a.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const o=n[0];t=n.slice(1).concat(t||[]);const i=new a.ToolRunner(o,t,r);return i.exec()})}t.exec=exec;function getExecOutput(e,t,r){var n,o;return s(this,void 0,void 0,function*(){let i="";let s="";const a=new c.StringDecoder("utf8");const u=new c.StringDecoder("utf8");const l=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const f=(o=r===null||r===void 0?void 0:r.listeners)===null||o===void 0?void 0:o.stderr;const p=e=>{s+=u.write(e);if(f){f(e)}};const d=e=>{i+=a.write(e);if(l){l(e)}};const h=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:d,stderr:p});const m=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:h}));i+=a.end();s+=u.end();return{exitCode:m,stdout:i,stderr:s}})}t.getExecOutput=getExecOutput},function(e,t,r){const{logger:n}=r(79);const{execute:o}=r(235);r(63).config();async function execute(e,t){n.info("Treating export command since it's not possible to run it from the runner itself");const r=getVariable(t);const o=await executeExpression(e,getExpression(t));n.info(`The variable ${r} has been stored with '${o}' value`);process.env[r]=o}async function executeExpression(e,t){const r=t.match(/`(.*)`/)?t.match(/`(.*)`/)[1]:undefined;if(r){n.info(`Executing ${r} from export expression.`);let t="";let i="";const s={listeners:{stdout:e=>{t=t.concat(e.toString())},stderr:e=>{i=i.concat(e.toString())}}};await o(e,r,s);return t}return t?t.replace(/['"]+/g,""):t}function getVariable(e){return getCommandArray(e)[1]}function getExpression(e){return getCommandArray(e)[2]}function getCommandArray(e){const t=e.match(/^export (\w+)=(.*)/);if(t.length!==3){throw new Error(`The export command ${e} is not properly defined. It should be something like "export VARIBLE=expression". Please fix it an try again.`)}return t}e.exports={execute:execute}},function(e,t,r){"use strict";var n=r(945);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},function(e){function treat(e){return e}e.exports={treat:treat}}]); \ 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:{}};var o=true;try{e[t].call(n.exports,n,n.exports,__webpack_require__);o=false}finally{if(o)delete r[t]}n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(109)}return startup()}([,function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const c=r(357);const a=i(r(129));const u=i(r(622));const l=r(669);const f=i(r(672));const p=l.promisify(a.exec);const d=l.promisify(a.execFile);function cp(e,t,r={}){return s(this,void 0,void 0,function*(){const{force:n,recursive:o,copySourceDirectory:i}=readCopyOptions(r);const s=(yield f.exists(t))?yield f.stat(t):null;if(s&&s.isFile()&&!n){return}const c=s&&s.isDirectory()&&i?u.join(t,u.basename(e)):t;if(!(yield f.exists(e))){throw new Error(`no such file or directory: ${e}`)}const a=yield f.stat(e);if(a.isDirectory()){if(!o){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(u.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return s(this,void 0,void 0,function*(){if(yield f.exists(t)){let n=true;if(yield f.isDirectory(t)){t=u.join(t,u.basename(e));n=yield f.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(u.dirname(t));yield f.rename(e,t)})}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,function*(){if(f.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=f.getCmdPath();if(yield f.isDirectory(e,true)){yield p(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield p(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield f.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield f.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield d(`rm`,[`-rf`,`${e}`])}else{yield f.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,function*(){c.ok(e,"a path argument must be provided");yield f.mkdir(e,{recursive:true})})}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(f.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""})}t.which=which;function findInPath(e){return s(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(f.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(u.delimiter)){if(e){t.push(e)}}}if(f.isRooted(e)){const r=yield f.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(u.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(u.delimiter)){if(e){r.push(e)}}}const n=[];for(const o of r){const r=yield f.tryGetExecutablePath(u.join(o,e),t);if(r){n.push(r)}}return n})}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return s(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const o=yield f.readdir(e);for(const i of o){const o=`${e}/${i}`;const s=`${t}/${i}`;const c=yield f.lstat(o);if(c.isDirectory()){yield cpDirRecursive(o,s,r,n)}else{yield copyFile(o,s,n)}}yield f.chmod(t,(yield f.stat(e)).mode)})}function copyFile(e,t,r){return s(this,void 0,void 0,function*(){if((yield f.lstat(e)).isSymbolicLink()){try{yield f.lstat(t);yield f.unlink(t)}catch(e){if(e.code==="EPERM"){yield f.chmod(t,"0666");yield f.unlink(t)}}const r=yield f.readlink(e);yield f.symlink(r,t,f.IS_WINDOWS?"junction":null)}else if(!(yield f.exists(t))||r){yield f.copyFile(e,t)}})}},function(e,t,r){"use strict";const n=r(87);const o=r(118);const i=r(494);const s=(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?o(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?i(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=s},,,,,,function(e,t,r){const{logger:n,ClientError:o}=r(79);const i=/^https:\/\/github.com\/([^/]+)\/([^/]+)\/(pull|tree)\/([^ ]+)$/;const s=/^(https?:\/\/.*\/)([^/]+)\/([^/]+)\/(pull|tree)\/([^ ]+)$/;function prepareEnv(e,t,r){e["GITHUB_SERVER_URL"]=t.match(s)[1];e["GITHUB_ACTION"]=undefined;e["GITHUB_ACTOR"]=r.pull_request.head.user.login;e["GITHUB_HEAD_REF"]=r.pull_request.head.ref;e["GITHUB_BASE_REF"]=r.pull_request.base.ref;e["GITHUB_REPOSITORY"]=r.pull_request.base.repo.full_name;e["GITHUB_REF"]=r.ref}function createGithubInformationObject(e,t){n.debug("eventData",e);return{sourceGroup:e.pull_request.head.repo.full_name.split("/")[0],author:e.pull_request.head.user.login,sourceRepository:e.repository?e.repository.name:e.pull_request.repo?e.pull_request.repo.full_name:t["GITHUB_REPOSITORY"]}}async function getEvent(e,t){let r;const s=t.match(i);if(s&&s[3]==="pull"){n.debug("Getting PR data...",t);const{data:o}=await e.pulls.get({owner:s[1],repo:s[2],pull_number:s[4]});r={action:"opened",ref:`refs/pull/${s[4]}/merge`,type:"pull_request",pull_request:o}}else if(s&&s[3]==="tree"){r={type:"tree",ref:`refs/heads/${s[4]}`,repository:{name:s[2],owner:{name:s[1]}}}}else{throw new o(`invalid URL: ${t}`)}return r}e.exports={getEvent:getEvent,createGithubInformationObject:createGithubInformationObject,prepareEnv:prepareEnv}},function(e,t,r){"use strict";var n=r(457);var o=r(685);function deprecated(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=r(945);e.exports.Schema=r(43);e.exports.FAILSAFE_SCHEMA=r(581);e.exports.JSON_SCHEMA=r(23);e.exports.CORE_SCHEMA=r(611);e.exports.DEFAULT_SAFE_SCHEMA=r(723);e.exports.DEFAULT_FULL_SCHEMA=r(910);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.safeLoad=n.safeLoad;e.exports.safeLoadAll=n.safeLoadAll;e.exports.dump=o.dump;e.exports.safeDump=o.safeDump;e.exports.YAMLException=r(556);e.exports.MINIMAL_SCHEMA=r(581);e.exports.SAFE_SCHEMA=r(723);e.exports.DEFAULT_SCHEMA=r(910);e.exports.scan=deprecated("scan");e.exports.parse=deprecated("parse");e.exports.compose=deprecated("compose");e.exports.addConstructor=deprecated("addConstructor")},,function(e,t,r){const{logger:n,annotationer:o}=r(79);const{execute:i}=r(81);const{treatCommand:s}=r(557);const{getDir:c}=r(330);const a=r(470);async function executeBuild(e,t,r,o={}){const i=t.findIndex(e=>e.project===r);if(i<0){throw new Error(`The chain ${t.map(e=>e.project)} does not contain the project triggering the job ${r}`)}for await(const[r,s]of t.entries()){if(s.build&&s.build.skip){n.info(`Execution skip for ${s.project}. No command will be executed.`)}else{const t=re):[t]){if(!n.skipStartGroup){a.startGroup(`[${r}]. Command: '${c}' in dir ${e}`)}const t=s(c,n);try{await i(e,t)}catch(e){o.error(`[${r}] [Execution ERROR]`,t);throw new Error(`[${r}] error executing command '${t}'`)}o.notice(`[${r}] [Execution OK]`,t);if(!n.skipStartGroup){a.endGroup()}}}}e.exports={executeBuild:executeBuild,executeBuildSpecificCommand:executeBuildSpecificCommand,executeBuildCommands:executeBuildCommands,getCommand:getCommand}},function(e,t,r){var n=r(363);var o=r(510);var i=r(763);var s=Function.bind;var c=s.bind(s);function bindApi(e,t,r){var n=c(i,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach(function(n){var i=r?[t,n,r]:[t,n];e[n]=e.api[n]=c(o,null).apply(null,i)})}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 a=false;function Hook(){if(!a){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');a=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},,,function(e,t,r){const{logger:n}=r(79);const{prepareEnv:o,createGithubInformationObject:i,getEvent:s}=r(8);const{start:c}=r(754);const{createCommonConfig:a}=r(981);async function execute(e,t,r,o,s,u={}){const l=i(o,r);const f=await a(l,s,r);const p={token:e,octokit:t,config:f};n.debug("build-chain-pull-single.js. githubInformation",l);n.debug("build-chain-pull-single.js. config",f);await c(p,u)}async function executeFromEvent(e,t,r,n){await execute(e,t,r,n,undefined,{isArchiveArtifacts:true})}async function executeLocally(e,t,r,i,c,a={}){n.info(`Executing pull request flow for ${c} in ${i}`);a.isArchiveArtifacts=false;const u=await s(t,c);o(r,c,u);await execute(e,t,r,u,i,a)}e.exports={executeLocally:executeLocally,executeFromEvent:executeFromEvent}},function(e){e.exports=require("tls")},,function(module){module.exports=eval("require")("encoding")},,function(e,t,r){"use strict";const n=r(129);const o=r(568);const i=r(881);function spawn(e,t,r){const s=o(e,t,r);const c=n.spawn(s.command,s.args,s.options);i.hookChildProcess(c,s);return c}function spawnSync(e,t,r){const s=o(e,t,r);const c=n.spawnSync(s.command,s.args,s.options);c.error=c.error||i.verifyENOENTSync(c.status,s);return c}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=o;e.exports._enoent=i},,function(e,t,r){const n=r(605);const o=r(211);function checkUrlExist(e,t=undefined){const r=t?{headers:{Authorization:`token ${t}`}}:{};return new Promise(t=>{(e.startsWith("https://")?o:n).get(e,r,e=>{t(200===e.statusCode)})})}e.exports={checkUrlExist:checkUrlExist}},function(e,t,r){"use strict";var n=r(43);e.exports=new n({include:[r(581)],implicit:[r(809),r(228),r(44),r(417)]})},,,,,,,,,,,,,,,,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"})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},,,function(e,t,r){"use strict";var n=r(740);var o=r(556);var i=r(945);function compileList(e,t,r){var n=[];e.include.forEach(function(e){r=compileList(e,t,r)});e[t].forEach(function(e){r.forEach(function(t,r){if(t.tag===e.tag&&t.kind===e.kind){n.push(r)}});r.push(e)});return r.filter(function(e,t){return n.indexOf(t)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function collectType(t){e[t.kind][t.tag]=e["fallback"][t.tag]=t}for(t=0,r=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},,,,,function(e,t,r){var n=r(293);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}},,,,,function(e,t,r){"use strict";const n=r(869);const o=r(622);const i=r(159);const s=i("10.12.0");const c=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(o.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const a=e=>{const t={mode:511};if(typeof e==="number")e={mode:e};return{...t,...e}};const u=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};e.exports.makeDir=(async(e,t)=>{c(e);t=a(t);if(s){const r=o.resolve(e);return n.mkdir(r,{mode:t.mode,recursive:true})}const r=async e=>{try{await n.mkdir(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(o.dirname(e)===e){throw u(e)}if(t.message.includes("null bytes")){throw t}await r(o.dirname(e));return r(e)}try{const r=await n.stat(e);if(!r.isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return r(o.resolve(e))});e.exports.makeDirSync=((e,t)=>{c(e);t=a(t);if(s){const r=o.resolve(e);return n.mkdirSync(r,{mode:t.mode,recursive:true})}const r=e=>{try{n.mkdirSync(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(o.dirname(e)===e){throw u(e)}if(t.message.includes("null bytes")){throw t}r(o.dirname(e));return r(e)}try{if(!n.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return r(o.resolve(e))})},,,,,,,,,function(e,t,r){const n=r(747);const o=r(622);function log(e){console.log(`[dotenv][DEBUG] ${e}`)}const i="\n";const s=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/;const c=/\\n/g;const a=/\n|\r|\r\n/;function parse(e,t){const r=Boolean(t&&t.debug);const n={};e.toString().split(a).forEach(function(e,t){const o=e.match(s);if(o!=null){const e=o[1];let t=o[2]||"";const r=t.length-1;const s=t[0]==='"'&&t[r]==='"';const a=t[0]==="'"&&t[r]==="'";if(a||s){t=t.substring(1,r);if(s){t=t.replace(c,i)}}else{t=t.trim()}n[e]=t}else if(r){log(`did not match key and value when parsing line ${t+1}: ${e}`)}});return n}function config(e){let t=o.resolve(process.cwd(),".env");let r="utf8";let i=false;if(e){if(e.path!=null){t=e.path}if(e.encoding!=null){r=e.encoding}if(e.debug!=null){i=true}}try{const e=parse(n.readFileSync(t,{encoding:r}),{debug:i});Object.keys(e).forEach(function(t){if(!Object.prototype.hasOwnProperty.call(process.env,t)){process.env[t]=e[t]}else if(i){log(`"${t}" is already defined in \`process.env\` and will not be overwritten`)}});return{parsed:e}}catch(e){return{error:e}}}e.exports.config=config;e.exports.parse=parse},,,,,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 o=t.endpoint.merge(r,n);o.headers.authorization=withAuthorizationPrefix(e);return t(o)}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},,,,,,,,,,,function(e,t,r){const n=r(669);const{getAnnotationsPrefix:o}=r(933);const i=r(470);class ClientError extends Error{}class TimeoutError extends Error{}function log(e,t){const r=t.map(e=>typeof e==="object"?inspect(e):e);if(e){console.log.apply(console,[e,...r])}else{console.log.apply(console,r)}}const s={notice:(e,t)=>i.notice(t,{title:`${o()} ${e}`}),warning:(e,t)=>i.warning(t,{title:`${o()} ${e}`}),error:(e,t)=>i.error(t,{title:`${o()} ${e}`})};const c={level:"info",trace:(...e)=>{if(c.level==="trace"){log("[TRACE] ",e)}},debug:(...e)=>{if(c.isDebug()){log("[DEBUG] ",e)}},emptyLine:()=>log("",[]),info:(...e)=>log("[INFO] ",e),warn:(...e)=>log("[WARN] ",e),error:(...e)=>{if(e.length===1){if(e[0]instanceof Error){if(c.isDebug()){log(null,[e[0].stack||e[0]])}else{log("[ERROR] ",[e[0].message||e[0]])}}}else{log("[ERROR] ",e)}},isDebug:()=>c.level==="trace"||c.level==="debug"};function inspect(e){return n.inspect(e,false,null,true)}e.exports={ClientError:ClientError,TimeoutError:TimeoutError,annotationer:s,logger:c}},,function(e,t,r){const{logger:n}=r(79);const{executeCommand:o}=r(284);class ExitError extends Error{constructor(e,t){super(e);this.code=t}}async function execute(e,t){n.info(`Execute command '${t}' in dir '${e}'`);await o(e,t)}e.exports={ExitError:ExitError,execute:execute}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},,,,,function(e){e.exports=require("os")},,,,,,function(e,t,r){"use strict";var n=r(740);function Mark(e,t,r,n,o){this.name=e;this.buffer=t;this.position=r;this.line=n;this.column=o}Mark.prototype.getSnippet=function getSnippet(e,t){var r,o,i,s,c;if(!this.buffer)return null;e=e||4;t=t||75;r="";o=this.position;while(o>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1))===-1){o-=1;if(this.position-o>t/2-1){r=" ... ";o+=5;break}}i="";s=this.position;while(st/2-1){i=" ... ";s-=5;break}}c=this.buffer.slice(o,s);return n.repeat(" ",e)+r+c+i+"\n"+n.repeat(" ",e+this.position-o+r.length)+"^"};Mark.prototype.toString=function toString(e){var t,r="";if(this.name){r+='in "'+this.name+'" '}r+="at line "+(this.line+1)+", column "+(this.column+1);if(!e){t=this.getSnippet();if(t){r+=":\n"+t}}return r};e.exports=Mark},,function(e,t,r){"use strict";const n=r(598);const o=r(622);const i=r(640).copySync;const s=r(368).removeSync;const c=r(727).mkdirpSync;const a=r(425);function moveSync(e,t,r){r=r||{};const n=r.overwrite||r.clobber||false;const{srcStat:i}=a.checkPathsSync(e,t,"move");a.checkParentPathsSync(e,i,t,"move");c(o.dirname(t));return doRename(e,t,n)}function doRename(e,t,r){if(r){s(t);return rename(e,t,r)}if(n.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{n.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const n={overwrite:r,errorOnExist:true};i(e,t,n);return s(e)}e.exports=moveSync},,,,function(e,t,r){const{readDefinitionFile:n}=r(352);const{executeBuildCommands:o}=r(11);const i=r(470);async function execute(e,t={urlPlaceHolders:{},token:undefined}){const r=await n(e,t);if(r.pre){i.startGroup(`[PRE] Executing pre section for ${e}`);await o(process.cwd(),r.pre.split(/\r?\n/),"PRE",{skipStartGroup:true});i.endGroup()}}e.exports={execute:execute}},function(e,t,r){"use strict";var n=r(945);var o=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,r=e;for(t in r){if(o.call(r,t)){if(r[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},function(e,t,r){const{readDefinitionFile:n}=r(799);const{treatProject:o}=r(443);const{validateNode:i}=r(127);async function getTree(e,t={urlPlaceHolders:{},token:undefined}){const r=await n(e,t);return dependencyListToTree(r.dependencies,r)}async function getTreeForProject(e,t,r={urlPlaceHolders:{},token:undefined}){return lookForProject(await getTree(e,r),t)}function lookForProject(e,t){if(e&&e.length>0){const r=e.find(e=>t===e.project);return r?r:e.map(e=>lookForProject(e.children,t)).find(e=>e)}else{return undefined}}function dependencyListToTree(e,t){const r=e.reduce((e,t,r)=>{e[t.project]={index:r,node:undefined};t.children=[];t.parents=[];return e},{});return e.reduce((n,s)=>{i(s);r[s.project].node={...s,repo:{group:s.project.split("/")[0],name:s.project.split("/")[1]},...o(s.project,t)};if(s.dependencies&&s.dependencies.length>0){s.dependencies.forEach(t=>{if([null,undefined].includes(r[t.project])){const e=`The project ${t.project} does not exist on project list. Please review your project definition file`;console.error(e);throw new Error(e)}e[r[t.project].index].children.push({...r[s.project].node});s.parents.push({...r[t.project].node})})}else{n.push(r[s.project].node)}return n},[])}e.exports={getTree:getTree,getTreeForProject:getTreeForProject,dependencyListToTree:dependencyListToTree}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=i(r(747));const c=i(r(87));const a=r(82);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${a.toCommandValue(t)}${c.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},,,,,,,function(module,__unusedexports,__webpack_require__){const{ClientError:ClientError,logger:logger}=__webpack_require__(79);const{executeFromEvent:pullRequestEventFlow}=__webpack_require__(701);const{executeFromEvent:fdbEventFlow}=__webpack_require__(771);const{executeFromEvent:singleEventFlow}=__webpack_require__(15);const{executeFromEvent:branchEventFlow}=__webpack_require__(131);const{isPullRequestFlowType:isPullRequestFlowType,isFDFlowType:isFDFlowType,isSingleFlowType:isSingleFlowType,isBranchFlowType:isBranchFlowType,getFlowType:getFlowType,getLoggerLevel:getLoggerLevel}=__webpack_require__(933);const{createOctokitInstance:createOctokitInstance,getProcessEnvVariable:getProcessEnvVariable}=__webpack_require__(523);__webpack_require__(63).config();const fse=__webpack_require__(226);const{printLocalCommand:printLocalCommand}=__webpack_require__(320);async function getEventData(){let e;try{e=getProcessEnvVariable("GITHUB_EVENT_PATH")}catch(e){logger.error("Error trying to get event path from 'GITHUB_EVENT_PATH' environment variable. Are you sure you are executing this based on a github event?");throw e}const t=await fse.readFile(e,"utf8");return JSON.parse(t)}async function main(){const e=await getEventData();logger.level=getLoggerLevel();logger.debug(e);await printLocalCommand(e);const t=getProcessEnvVariable("GITHUB_TOKEN",false);const r=createOctokitInstance(t);if(isPullRequestFlowType()){await pullRequestEventFlow(t,r,process.env,e)}else if(isFDFlowType()){await fdbEventFlow(t,r,process.env,e)}else if(isSingleFlowType()){await singleEventFlow(t,r,process.env,e)}else if(isBranchFlowType()){await branchEventFlow(t,r,process.env)}else{throw new Error(`flow type input value '${getFlowType()}' is not supported. Please check documentation.`)}}if(require.main===require.cache[eval("__filename")]){main().catch(e=>{if(e instanceof ClientError){process.exitCode=2;logger.error(e)}else{process.exitCode=1;logger.error(e)}})}module.exports={main:main}},function(e,t,r){"use strict";const n=r(598);const o=r(622);const i=r(727).mkdirsSync;const s=r(916).utimesMillisSync;const c=r(425);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:n,destStat:o}=c.checkPathsSync(e,t,"copy");c.checkParentPathsSync(e,n,t,"copy");return handleFilterAndCopy(o,e,t,r)}function handleFilterAndCopy(e,t,r,s){if(s.filter&&!s.filter(t,r))return;const c=o.dirname(r);if(!n.existsSync(c))i(c);return startCopy(e,t,r,s)}function startCopy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;return getStats(e,t,r,n)}function getStats(e,t,r,o){const i=o.dereference?n.statSync:n.lstatSync;const s=i(t);if(s.isDirectory())return onDir(s,e,t,r,o);else if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return onFile(s,e,t,r,o);else if(s.isSymbolicLink())return onLink(e,t,r,o)}function onFile(e,t,r,n,o){if(!t)return copyFile(e,r,n,o);return mayCopyFile(e,r,n,o)}function mayCopyFile(e,t,r,o){if(o.overwrite){n.unlinkSync(r);return copyFile(e,t,r,o)}else if(o.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,o){n.copyFileSync(t,r);if(o.preserveTimestamps)handleTimestamps(e.mode,t,r);return setDestMode(r,e.mode)}function handleTimestamps(e,t,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(t,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return n.chmodSync(e,t)}function setDestTimestamps(e,t){const r=n.statSync(e);return s(t,r.atime,r.mtime)}function onDir(e,t,r,n,o){if(!t)return mkDirAndCopy(e.mode,r,n,o);if(t&&!t.isDirectory()){throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)}return copyDir(r,n,o)}function mkDirAndCopy(e,t,r,o){n.mkdirSync(r);copyDir(t,r,o);return setDestMode(r,e)}function copyDir(e,t,r){n.readdirSync(e).forEach(n=>copyDirItem(n,e,t,r))}function copyDirItem(e,t,r,n){const i=o.join(t,e);const s=o.join(r,e);const{destStat:a}=c.checkPathsSync(i,s,"copy");return startCopy(a,i,s,n)}function onLink(e,t,r,i){let s=n.readlinkSync(t);if(i.dereference){s=o.resolve(process.cwd(),s)}if(!e){return n.symlinkSync(s,r)}else{let e;try{e=n.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return n.symlinkSync(s,r);throw e}if(i.dereference){e=o.resolve(process.cwd(),e)}if(c.isSrcSubdir(s,e)){throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`)}if(n.statSync(r).isDirectory()&&c.isSrcSubdir(e,s)){throw new Error(`Cannot overwrite '${e}' with '${s}'.`)}return copyLink(s,r)}}function copyLink(e,t){n.unlinkSync(t);return n.symlinkSync(e,t)}e.exports=copySync},,function(e,t,r){const{logger:n}=r(79);function treat(e,t){if(t){n.info(`[REGEX COMMAND REPLACEMENT] Replacing command: '${e}' by expressions: '${t}'`);const r=t.reduce((e,t)=>treatReplaceEx(e,t),e);n.info(r===e?`[REGEX COMMAND REPLACEMENT] No replacement for ${e}`:`[REGEX COMMAND REPLACEMENT] Replaced to: '${r}'`);return r}else{return e}}function treatReplaceEx(e,t){const r=getReplacemenExpression(t);return e.replace(r.regEx,r.replace)}function getReplacemenExpression(e){const t=e.split("||");return{regEx:createRegex(t[0]),replace:t[1]}}function createRegex(e){const[,t,r]=e.split("/");return t?r?new RegExp(t,r):new RegExp(t):new RegExp(e)}e.exports={treat:treat}},function(e,t,r){r(63).config();function treat(e){const t=getVariablesFromCommand(e);if(t&&t.length>0){return t.reduce((e,t)=>e.replace(t[0],process.env[t[1]]||""),e)}else{return e}}function getVariablesFromCommand(e){return[...e.matchAll(/\${{ env\.(\w+) }}/g)]}e.exports={treat:treat}},,,,function(e,t,r){var n=r(622);var o=process.platform==="win32";var i=r(747);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(s){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var c=n.normalize;if(o){var a=/(.*?)(?:[\/\\]+|$)/g}else{var a=/(.*?)(?:[\/]+|$)/g}if(o){var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var u=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,s={},c={};var l;var f;var p;var d;start();function start(){var t=u.exec(e);l=t[0].length;f=t[0];p=t[0];d="";if(o&&!c[p]){i.lstatSync(p);c[p]=true}}while(l=e.length){if(t)t[s]=e;return r(null,e)}a.lastIndex=f;var n=a.exec(e);h=p;p+=n[0];d=h+n[1];f=a.lastIndex;if(l[d]||t&&t[d]===d){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,d)){return gotResolvedLink(t[d])}return i.lstat(d,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){l[d]=true;if(t)t[d]=d;return process.nextTick(LOOP)}if(!o){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(c.hasOwnProperty(s)){return gotTarget(null,c[s],d)}}i.stat(d,function(e){if(e)return r(e);i.readlink(d,function(e,t){if(!o)c[s]=t;gotTarget(e,t)})})}function gotTarget(e,o,i){if(e)return r(e);var s=n.resolve(h,o);if(t)t[i]=s;gotResolvedLink(s)}function gotResolvedLink(t){e=n.resolve(t,e.slice(f));start()}}},function(e,t,r){"use strict";const n=r(87);const o=new Map([[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]);const i=e=>{e=Number((e||n.release()).split(".")[0]);const[t,r]=o.get(e);return{name:t,version:r}};e.exports=i;e.exports.default=i},,function(e,t,r){e.exports=glob;var n=r(747);var o=r(302);var i=r(571);var s=i.Minimatch;var c=r(689);var a=r(614).EventEmitter;var u=r(622);var l=r(357);var f=r(681);var p=r(245);var d=r(856);var h=d.alphasort;var m=d.alphasorti;var g=d.setopts;var w=d.ownProp;var y=r(634);var b=r(669);var v=d.childrenIgnored;var E=d.isIgnored;var T=r(49);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return p(e,t)}return new Glob(e,t,r)}glob.sync=p;var S=glob.GlobSync=p.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var o=n.minimatch.set;if(!e)return false;if(o.length>1)return true;for(var i=0;ithis.maxLength)return t();if(!this.stat&&w(this.cache,r)){var i=this.cache[r];if(Array.isArray(i))i="DIR";if(!o||i==="DIR")return t(null,i);if(o&&i==="FILE")return t()}var s;var c=this.statCache[r];if(c!==undefined){if(c===false)return t(null,c);else{var a=c.isDirectory()?"DIR":"FILE";if(o&&a==="FILE")return t();else return t(null,a,c)}}var u=this;var l=y("stat\0"+r,lstatcb_);if(l)n.lstat(r,l);function lstatcb_(o,i){if(i&&i.isSymbolicLink()){return n.stat(r,function(n,o){if(n)u._stat2(e,r,null,i,t);else u._stat2(e,r,n,o,t)})}else{u._stat2(e,r,o,i,t)}}};Glob.prototype._stat2=function(e,t,r,n,o){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return o()}var i=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return o(null,false,n);var s=true;if(n)s=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||s;if(i&&s==="FILE")return o();return o(null,s,n)}},,,,,,,function(e,t,r){const n=r(357);const o=["2.1"];function validateDefinition(e){n(e,"definition file is empty or couldn't be loaded, please check 'definition-file' input");validateVersion(e.version,"definition")}function validateDependencies(e){validateVersion(e.version,"dependencies")}function validateVersion(e,t){n(e,`version is not defined on ${t} file. Please add version: x, where x is one of these values ${o}`);n(o.includes(e),`version ${e} is not allowed in ${t} file. Allowed versions: ${o}`)}function validateNode(e){n(e,"node is undefined. Please check your definition file. For example, projects declared as a dependency for another project has to be already defined (I mean from order point of view).");n(e.project,"project can't be undefined, please properly define your file.");n(e.project.split("/").length===2,`project has to defined following \`group/project\` pattern (i.e. \`kiegroup/drools\`). "${e.project}" instead`)}e.exports={validateDefinition:validateDefinition,validateDependencies:validateDependencies,validateNode:validateNode}},,function(e){e.exports=require("child_process")},,function(e,t,r){const{logger:n}=r(79);const{start:o}=r(361);const{createCommonConfig:i}=r(981);const s=r(357);async function execute(e,t,r,s,c,a={}){const u=await i(s,c,r);const l={token:e,octokit:t,config:u};n.debug("build-chain-pull-branch.js. githubInformation",s);n.debug("build-chain-pull-branch.js. config",u);await o(l,a)}async function executeFromEvent(e,t,r){const n=r["GITHUB_REPOSITORY_OWNER"];const o=r["GITHUB_REPOSITORY"];const i={sourceGroup:n,author:n,sourceRepository:o};await execute(e,t,r,i,undefined,{isArchiveArtifacts:true})}async function executeLocally(e,t,r,o,i,c,a,u={}){s(c.includes("/"),`project ${c} should follow 'group/projectName' pattern`);const l=i?i:c.split("/")[0];n.info(`Executing branch flow for ${c}:${a} in ${o}`);r["GITHUB_SERVER_URL"]="https://github.com";r["GITHUB_ACTION"]=undefined;r["GITHUB_ACTOR"]=l;r["GITHUB_HEAD_REF"]=a;r["GITHUB_BASE_REF"]=a;r["GITHUB_REPOSITORY"]=c;const f={sourceGroup:l,author:l,sourceRepository:c};await execute(e,t,r,f,o,u)}e.exports={executeLocally:executeLocally,executeFromEvent:executeFromEvent}},,,,,,function(e,t,r){const{checkoutDefinitionTree:n,getPlaceHolders:o}=r(330);const{executeBuild:i}=r(11);const{getOrderedListForProject:s}=r(352);const{printCheckoutInformation:c,printExecutionPlan:a}=r(656);const{logger:u}=r(79);const l=r(470);const{archiveArtifacts:f}=r(503);const{execute:p}=r(99);const{execute:d}=r(153);async function start(e,t={isArchiveArtifacts:true,skipExecution:false}){u.debug("full-downstream-flow.js options",t);const r={urlPlaceHolders:await o(e,e.config.github.inputs.definitionFile),token:e.token};u.debug("full-downstream-flow.js readerOptions",r);if(!t.skipExecution){await p(e.config.github.inputs.definitionFile,r)}const h=e.config.github.inputs.startingProject?e.config.github.inputs.startingProject:e.config.github.repository;u.debug("full-downstream-flow.js projectTriggeringJob",h);const m=await s(e.config.github.inputs.definitionFile,h,r);u.debug("full-downstream-flow.js nodeChain",m);if(!t.skipExecution){l.startGroup(`[Full Downstream Flow] Execution Plan...`);a(m,h);l.endGroup()}l.startGroup(`[Full Downstream Flow] Checking out ${e.config.github.groupProject} and its dependencies`);u.info(`Tree for project ${h}. Chain: ${m.map(e=>"\n"+e.project)}`);const g=await n(e,m,"pr",t);l.endGroup();l.startGroup(`[Full Downstream Flow] Checkout Summary...`);c(g);l.endGroup();if(!t.skipExecution){const n=await i(e.config.rootFolder,m,h,t).then(()=>true).catch(e=>e);if(t.isArchiveArtifacts){l.startGroup(`[Full Downstream Flow] Archiving artifacts...`);await f(m.find(e=>e.project===h),m,n===true?["success","always"]:["failure","always"]);l.endGroup()}else{u.info("Archive artifact won't be executed")}await d(e.config.github.inputs.definitionFile,n,r);if(n!==true){u.error(n);throw new Error(`Command executions have failed, please review latest execution ${n}`)}}else{u.info("Execution has been skipped.")}}e.exports={start:start}},,,,function(e,t,r){"use strict";var n=r(631);var o=r(16);var i=r(605);var s=r(211);var c=r(614);var a=r(357);var u=r(669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||i.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,r,n,o){var i=toOptions(r,n,o);for(var s=0,c=t.requests.length;s=this.maxSockets){o.requests.push(i);return}o.createSocket(i,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){o.emit("free",t,i)}function onCloseOrRemove(e){o.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 o=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){o.localAddress=e.localAddress}if(o.proxyAuth){o.headers=o.headers||{};o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")}l("making CONNECT request");var i=r.request(o);i.useChunkedEncodingByDefault=false;i.once("response",onResponse);i.once("upgrade",onUpgrade);i.once("connect",onConnect);i.once("error",onError);i.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(o,s,c){i.removeAllListeners();s.removeAllListeners();if(o.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",o.statusCode);s.destroy();var a=new Error("tunneling socket could not be established, "+"statusCode="+o.statusCode);a.code="ECONNRESET";e.request.emit("error",a);r.removeSocket(n);return}if(c.length>0){l("got illegal response body from proxy");s.destroy();var a=new Error("got illegal response body from proxy");a.code="ECONNRESET";e.request.emit("error",a);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=s;return t(s)}function onError(t){i.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, "+"cause="+t.message);o.code="ECONNRESET";e.request.emit("error",o);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 i=e.request.getHeader("host");var s=mergeOptions({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host});var c=o.connect(0,s);r.sockets[r.sockets.indexOf(n)]=c;t(c)})}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 a=e=>{if(e){e.bufferedData=i.getBufferedValue()}c(e)};i=n(e,o(t),e=>{if(e){a(e);return}s()});i.on("data",()=>{if(i.getBufferedLength()>r){a(new MaxBufferError)}})}).then(()=>i.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},,,,function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(622);const i=r(598);const s=r(727);function createFile(e,t){function makeFile(){i.writeFile(e,"",e=>{if(e)return t(e);t()})}i.stat(e,(r,n)=>{if(!r&&n.isFile())return t();const c=o.dirname(e);i.stat(c,(e,r)=>{if(e){if(e.code==="ENOENT"){return s.mkdirs(c,e=>{if(e)return t(e);makeFile()})}return t(e)}if(r.isDirectory())makeFile();else{i.readdir(c,e=>{if(e)return t(e)})}})})}function createFileSync(e){let t;try{t=i.statSync(e)}catch{}if(t&&t.isFile())return;const r=o.dirname(e);try{if(!i.statSync(r).isDirectory()){i.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")s.mkdirsSync(r);else throw e}i.writeFileSync(e,"")}e.exports={createFile:n(createFile),createFileSync:createFileSync}},,,,function(e,t,r){const{readDefinitionFile:n}=r(352);const{logger:o}=r(79);const{executeBuildCommands:i}=r(11);const s=r(470);async function execute(e,t,r={urlPlaceHolders:{},token:undefined}){const c=await n(e,r);if(c.post){s.startGroup(`[POST] Executing post section for ${e}`);if(t===true){o.info("[POST] execution result is OK, so 'success' and 'always' sections will be executed");if(c.post.success){await i(process.cwd(),c.post.success.split(/\r?\n/),"POST SUCCESS",{skipStartGroup:true})}}else{o.info("[POST] execution result is NOT OK, so 'failure' and 'always' sections will be executed");if(c.post.failure){await i(process.cwd(),c.post.failure.split(/\r?\n/),"POST FAILURE",{skipStartGroup:true})}}if(c.post.always){await i(process.cwd(),c.post.always.split(/\r?\n/),"POST ALWAYS",{skipStartGroup:true})}s.endGroup()}}e.exports={execute:execute}},,,,,,function(e){e.exports=(e=>{const t=process.versions.node.split(".").map(e=>parseInt(e,10));e=e.split(".").map(e=>parseInt(e,10));return t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])})},,,,,,,,,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 o=[];const i=Math.max(n.length,t.length);for(let r=0;r{const e=this.formatPercentage(this.processedCount,this.totalNumberOfFilesToProcess);n.info(`Total file count: ${this.totalNumberOfFilesToProcess} ---- Processed file #${this.processedCount} (${e.slice(0,e.indexOf(".")+2)}%)`)},this.displayFrequencyInMilliseconds);this.largeFileStatus=setInterval(()=>{for(const e of Array.from(this.largeFiles.values())){n.info(e)}this.largeFiles.clear()},1e3)}updateLargeFileStatus(e,t,r){const n=this.formatPercentage(t,r);const o=`Uploading ${e} (${n.slice(0,n.indexOf(".")+2)}%)`;this.largeFiles.set(e,o)}stop(){if(this.totalFileStatus){clearInterval(this.totalFileStatus)}if(this.largeFileStatus){clearInterval(this.largeFileStatus)}}incrementProcessedCount(){this.processedCount++}formatPercentage(e,t){return(e/t*100).toFixed(4).toString()}}t.StatusReporter=StatusReporter},,,,,,,,,,,,,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 o=e.request.endpoint.parse(r);const i=o.url.replace(r.baseUrl,"");return t(r).then(t=>{e.log.info(`${o.method} ${i} - ${t.status} in ${Date.now()-n}ms`);return t}).catch(t=>{e.log.info(`${o.method} ${i} - ${t.status} in ${Date.now()-n}ms`);throw t})})}requestLog.VERSION=r;t.requestLog=requestLog},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(605);const o=r(211);const i=r(651);let s;var c;(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"})(c=t.HttpCodes||(t.HttpCodes={}));var a;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(a=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=i.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const f=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const p=["OPTIONS","GET","DELETE","HEAD"];const d=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;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=new URL(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[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,u.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[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.post(e,n,r);return this._processResponse(o,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.put(e,n,r);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.patch(e,n,r);return this._processResponse(o,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let o=new URL(t);let i=this._prepareRequest(e,o,n);let s=this._allowRetries&&p.indexOf(e)!=-1?this._maxRetries+1:1;let a=0;let u;while(a0){const s=u.message.headers["location"];if(!s){break}let c=new URL(s);if(o.protocol=="https:"&&o.protocol!=c.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 u.readBody();if(c.hostname!==o.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}i=this._prepareRequest(e,c,n);u=await this.requestRaw(i,r);t--}if(f.indexOf(u.message.statusCode)==-1){return u}a+=1;if(a{let o=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,o)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;let i=(e,t)=>{if(!o){o=true;r(e,t)}};let s=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);i(null,t)});s.on("socket",e=>{n=e});s.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}i(new Error("Request timeout: "+e.options.path),null)});s.on("error",function(e){i(e,null)});if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){s.end()});t.pipe(s)}else{s.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const s=i.parsedUrl.protocol==="https:";i.httpModule=s?o:n;const c=s?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):c;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(i.options)})}return i}_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 o;if(this.requestOptions&&this.requestOptions.headers){o=n(this.requestOptions.headers)[t]}return e[t]||o||r}_getAgent(e){let t;let c=i.getProxyUrl(e);let a=c&&c.hostname;if(this._keepAlive&&a){t=this._proxyAgent}if(this._keepAlive&&!a){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(a){if(!s){s=r(413)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{...(c.username||c.password)&&{proxyAuth:`${c.username}:${c.password}`},host:c.hostname,port:c.port}};let n;const o=c.protocol==="https:";if(u){n=o?s.httpsOverHttps:s.httpsOverHttp}else{n=o?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new o.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=u?o.globalAgent:n.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(d,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 o=e.message.statusCode;const i={statusCode:o,result:null,headers:{}};if(o==c.NotFound){r(i)}let s;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){s=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(a)}i.result=s}i.headers=e.message.headers}catch(e){}if(o>299){let e;if(s&&s.message){e=s.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+o+")"}let t=new HttpClientError(e,o);t.result=i.result;n(t)}else{r(i)}})}}t.HttpClient=HttpClient},,,,,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 o=e.gid;var i=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var s=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var c=parseInt("100",8);var a=parseInt("010",8);var u=parseInt("001",8);var l=c|a;var f=r&u||r&a&&o===s||r&c&&n===i||r&l&&i===0;return f}},,,,,,,,,,,,,,function(e){e.exports=require("https")},,function(e){e.exports=require("timers")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(359);function create(){return n.DefaultArtifactClient.create()}t.create=create},,,,,,,,,,,,function(e,t,r){"use strict";e.exports={...r(869),...r(640),...r(774),...r(615),...r(472),...r(171),...r(727),...r(959),...r(353),...r(517),...r(322),...r(368)};const n=r(747);if(Object.getOwnPropertyDescriptor(n,"promises")){Object.defineProperty(e.exports,"promises",{get(){return n.promises}})}},,function(e,t,r){"use strict";var n=r(945);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},,,,,,,function(e,t,r){const n=r(986);r(63).config();async function execute(e,t,r={}){r.cwd=e;await n.exec(t,[],r)}e.exports={execute:execute}},,,,,,,,,,function(e,t,r){e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(747);var o=r(302);var i=r(571);var s=i.Minimatch;var c=r(120).Glob;var a=r(669);var u=r(622);var l=r(357);var f=r(681);var p=r(856);var d=p.alphasort;var h=p.alphasorti;var m=p.setopts;var g=p.ownProp;var w=p.childrenIgnored;var y=p.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);m(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return false;if(!this.stat&&g(this.cache,t)){var o=this.cache[t];if(Array.isArray(o))o="DIR";if(!r||o==="DIR")return o;if(r&&o==="FILE")return false}var i;var s=this.statCache[t];if(!s){var c;try{c=n.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(c&&c.isSymbolicLink()){try{s=n.statSync(t)}catch(e){s=c}}else{s=c}}this.statCache[t]=s;var o=true;if(s)o=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||o;if(r&&o==="FILE")return false;return o};GlobSync.prototype._mark=function(e){return p.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return p.makeAbs(this,e)}},,,,,function(e,t,r){var n=r(619);var o=process.cwd;var i=null;var s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!i)i=o.call(process);return i};try{process.cwd()}catch(e){}var c=process.chdir;process.chdir=function(e){i=null;c.call(process,e)};e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(s==="win32"){e.rename=function(t){return function(r,n,o){var i=Date.now();var s=0;t(r,n,function CB(c){if(c&&(c.code==="EACCES"||c.code==="EPERM")&&Date.now()-i<6e4){setTimeout(function(){e.stat(n,function(e,i){if(e&&e.code==="ENOENT")t(r,n,CB);else o(c)})},s);if(s<100)s+=10;return}if(o)o(c)})}}(e.rename)}e.read=function(t){function read(r,n,o,i,s,c){var a;if(c&&typeof c==="function"){var u=0;a=function(l,f,p){if(l&&l.code==="EAGAIN"&&u<10){u++;return t.call(e,r,n,o,i,s,a)}c.apply(this,arguments)}}return t.call(e,r,n,o,i,s,a)}read.__proto__=t;return read}(e.read);e.readSync=function(t){return function(r,n,o,i,s){var c=0;while(true){try{return t.call(e,r,n,o,i,s)}catch(e){if(e.code==="EAGAIN"&&c<10){c++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,o){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,function(t,n){if(t){if(o)o(t);return}e.fchmod(n,r,function(t){e.close(n,function(e){if(o)o(t||e)})})})};e.lchmodSync=function(t,r){var o=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var i=true;var s;try{s=e.fchmodSync(o,r);i=false}finally{if(i){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return s}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,r,o,i){e.open(t,n.O_SYMLINK,function(t,n){if(t){if(i)i(t);return}e.futimes(n,r,o,function(t){e.close(n,function(e){if(i)i(t||e)})})})};e.lutimesSync=function(t,r,o){var i=e.openSync(t,n.O_SYMLINK);var s;var c=true;try{s=e.futimesSync(i,r,o);c=false}finally{if(c){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return s}}else{e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,o){return t.call(e,r,n,function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)})}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,o,i){return t.call(e,r,n,o,function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)})}}function chownFixSync(t){if(!t)return t;return function(r,n,o){try{return t.call(e,r,n,o)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,o){if(typeof n==="function"){o=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(o)o.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var o=n?t.call(e,r,n):t.call(e,r);if(o.uid<0)o.uid+=4294967296;if(o.gid<0)o.gid+=4294967296;return o}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},,,,,,,,,,function(e,t,r){var n=r(357);var o=r(654);var i=/^win/i.test(process.platform);var s=r(614);if(typeof s!=="function"){s=s.EventEmitter}var c;if(process.__signal_exit_emitter__){c=process.__signal_exit_emitter__}else{c=process.__signal_exit_emitter__=new s;c.count=0;c.emitted={}}if(!c.infinite){c.setMaxListeners(Infinity);c.infinite=true}e.exports=function(e,t){n.equal(typeof e,"function","a callback must be provided for exit handler");if(u===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var o=function(){c.removeListener(r,e);if(c.listeners("exit").length===0&&c.listeners("afterexit").length===0){unload()}};c.on(r,e);return o};e.exports.unload=unload;function unload(){if(!u){return}u=false;o.forEach(function(e){try{process.removeListener(e,a[e])}catch(e){}});process.emit=f;process.reallyExit=l;c.count-=1}function emit(e,t,r){if(c.emitted[e]){return}c.emitted[e]=true;c.emit(e,t,r)}var a={};o.forEach(function(e){a[e]=function listener(){var t=process.listeners(e);if(t.length===c.count){unload();emit("exit",null,e);emit("afterexit",null,e);if(i&&e==="SIGHUP"){e="SIGINT"}process.kill(process.pid,e)}}});e.exports.signals=function(){return o};e.exports.load=load;var u=false;function load(){if(u){return}u=true;c.count+=1;o=o.filter(function(e){try{process.on(e,a[e]);return true}catch(e){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var l=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);l.call(process,process.exitCode)}var f=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=f.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return f.apply(this,arguments)}}},,,,,,,,,,,,,,,,,,,,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 o=Number.MAX_SAFE_INTEGER||9007199254740991;var i=16;var s=t.re=[];var c=t.src=[];var a=0;var u=a++;c[u]="0|[1-9]\\d*";var l=a++;c[l]="[0-9]+";var f=a++;c[f]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=a++;c[p]="("+c[u]+")\\."+"("+c[u]+")\\."+"("+c[u]+")";var d=a++;c[d]="("+c[l]+")\\."+"("+c[l]+")\\."+"("+c[l]+")";var h=a++;c[h]="(?:"+c[u]+"|"+c[f]+")";var m=a++;c[m]="(?:"+c[l]+"|"+c[f]+")";var g=a++;c[g]="(?:-("+c[h]+"(?:\\."+c[h]+")*))";var w=a++;c[w]="(?:-?("+c[m]+"(?:\\."+c[m]+")*))";var y=a++;c[y]="[0-9A-Za-z-]+";var b=a++;c[b]="(?:\\+("+c[y]+"(?:\\."+c[y]+")*))";var v=a++;var E="v?"+c[p]+c[g]+"?"+c[b]+"?";c[v]="^"+E+"$";var T="[v=\\s]*"+c[d]+c[w]+"?"+c[b]+"?";var S=a++;c[S]="^"+T+"$";var _=a++;c[_]="((?:<|>)?=?)";var O=a++;c[O]=c[l]+"|x|X|\\*";var A=a++;c[A]=c[u]+"|x|X|\\*";var P=a++;c[P]="[v=\\s]*("+c[A]+")"+"(?:\\.("+c[A]+")"+"(?:\\.("+c[A]+")"+"(?:"+c[g]+")?"+c[b]+"?"+")?)?";var C=a++;c[C]="[v=\\s]*("+c[O]+")"+"(?:\\.("+c[O]+")"+"(?:\\.("+c[O]+")"+"(?:"+c[w]+")?"+c[b]+"?"+")?)?";var k=a++;c[k]="^"+c[_]+"\\s*"+c[P]+"$";var R=a++;c[R]="^"+c[_]+"\\s*"+c[C]+"$";var j=a++;c[j]="(?:^|[^\\d])"+"(\\d{1,"+i+"})"+"(?:\\.(\\d{1,"+i+"}))?"+"(?:\\.(\\d{1,"+i+"}))?"+"(?:$|[^\\d])";var F=a++;c[F]="(?:~>?)";var x=a++;c[x]="(\\s*)"+c[F]+"\\s+";s[x]=new RegExp(c[x],"g");var $="$1~";var D=a++;c[D]="^"+c[F]+c[P]+"$";var G=a++;c[G]="^"+c[F]+c[C]+"$";var U=a++;c[U]="(?:\\^)";var L=a++;c[L]="(\\s*)"+c[U]+"\\s+";s[L]=new RegExp(c[L],"g");var I="$1^";var B=a++;c[B]="^"+c[U]+c[P]+"$";var q=a++;c[q]="^"+c[U]+c[C]+"$";var N=a++;c[N]="^"+c[_]+"\\s*("+T+")$|^$";var H=a++;c[H]="^"+c[_]+"\\s*("+E+")$|^$";var M=a++;c[M]="(\\s*)"+c[_]+"\\s*("+T+"|"+c[P]+")";s[M]=new RegExp(c[M],"g");var W="$1$2$3";var V=a++;c[V]="^\\s*("+c[P]+")"+"\\s+-\\s+"+"("+c[P]+")"+"\\s*$";var z=a++;c[z]="^\\s*("+c[C]+")"+"\\s+-\\s+"+"("+c[C]+")"+"\\s*$";var J=a++;c[J]="(<|>)?=?\\s*\\*";for(var Y=0;Yn){return null}var r=t.loose?s[S]:s[v];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 i=e.trim().match(t.loose?s[S]:s[v]);if(!i){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[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 o="";if(r.prerelease.length||n.prerelease.length){o="pre";var i="prerelease"}for(var s in r){if(s==="major"||s==="minor"||s==="patch"){if(r[s]!==n[s]){return o+s}}}return i}}t.compareIdentifiers=compareIdentifiers;var X=/^[0-9]+$/;function compareIdentifiers(e,t){var r=X.test(e);var n=X.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===Z){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var Z={};Comparator.prototype.parse=function(e){var t=this.options.loose?s[N]:s[H];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=Z}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===Z){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 o=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var i=this.semver.version===e.semver.version;var s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var c=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var a=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||o||i&&s||c||a};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?s[z]:s[V];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(s[M],W);r("comparator trim",e,s[M]);e=e.replace(s[x],$);e=e.replace(s[L],I);e=e.split(/\s+/).join(" ");var o=t?s[N]:s[H];var i=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){i=i.filter(function(e){return!!e.match(o)})}i=i.map(function(e){return new Comparator(e,this.options)},this);return i};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?s[G]:s[D];return e.replace(n,function(t,n,o,i,s){r("tilde",e,t,n,o,i,s);var c;if(isX(n)){c=""}else if(isX(o)){c=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(i)){c=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0"}else if(s){r("replaceTilde pr",s);c=">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+(+o+1)+".0"}else{c=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0"}r("tilde return",c);return c})}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?s[q]:s[B];return e.replace(n,function(t,n,o,i,s){r("caret",e,t,n,o,i,s);var c;if(isX(n)){c=""}else if(isX(o)){c=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(i)){if(n==="0"){c=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0"}else{c=">="+n+"."+o+".0 <"+(+n+1)+".0.0"}}else if(s){r("replaceCaret pr",s);if(n==="0"){if(o==="0"){c=">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+o+"."+(+i+1)}else{c=">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+(+o+1)+".0"}}else{c=">="+n+"."+o+"."+i+"-"+s+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(o==="0"){c=">="+n+"."+o+"."+i+" <"+n+"."+o+"."+(+i+1)}else{c=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0"}}else{c=">="+n+"."+o+"."+i+" <"+(+n+1)+".0.0"}}r("caret return",c);return c})}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?s[R]:s[k];return e.replace(n,function(t,n,o,i,s,c){r("xRange",e,t,n,o,i,s,c);var a=isX(o);var u=a||isX(i);var l=u||isX(s);var f=l;if(n==="="&&f){n=""}if(a){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&f){if(u){i=0}s=0;if(n===">"){n=">=";if(u){o=+o+1;i=0;s=0}else{i=+i+1;s=0}}else if(n==="<="){n="<";if(u){o=+o+1}else{i=+i+1}}t=n+o+"."+i+"."+s}else if(u){t=">="+o+".0.0 <"+(+o+1)+".0.0"}else if(l){t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(s[J],"")}function hyphenReplace(e,t,r,n,o,i,s,c,a,u,l,f,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(o)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(a)){c=""}else if(isX(u)){c="<"+(+a+1)+".0.0"}else if(isX(l)){c="<"+a+"."+(+u+1)+".0"}else if(f){c="<="+a+"."+u+"."+l+"-"+f}else{c="<="+c}return(t+" "+c).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 i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.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 o=null;try{var i=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(i.test(e)){if(!n||o.compare(e)===-1){n=e;o=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var o=null;try{var i=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(i.test(e)){if(!n||o.compare(e)===1){n=e;o=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 o,i,s,c,a;switch(r){case">":o=gt;i=lte;s=lt;c=">";a=">=";break;case"<":o=lt;i=gte;s=gt;c="<";a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u=0.0.0")}f=f||e;p=p||e;if(o(e.semver,f.semver,n)){f=e}else if(s(e.semver,p.semver,n)){p=e}});if(f.operator===c||f.operator===a){return false}if((!p.operator||p.operator===c)&&i(e,p.semver)){return false}else if(p.operator===a&&s(e,p.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(s[j]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const o=r(297);function create(e,t){return n(this,void 0,void 0,function*(){return yield o.DefaultGlobber.create(e,t)})}t.create=create},,,function(e,t,r){const n=r(235);const o=r(987);async function executeCommand(e,t){let r=n;if(isExport(t)){r=o}return await r.execute(e,t)}function isExport(e){return e.trim().match(/^export .*=/)}e.exports={executeCommand:executeCommand}},,,,,,,,,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;r1||resume(e,t)})}}function resume(e,t){try{step(n[e](t))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof i?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),s.shift(),s.length)resume(s[0][0],s[0][1])}};Object.defineProperty(t,"__esModule",{value:true});const c=r(470);const a=r(747);const u=r(601);const l=r(622);const f=r(597);const p=r(327);const d=r(923);const h=r(728);const m=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=u.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return n(this,void 0,void 0,function*(){const r=[];try{for(var n=o(this.globGenerator()),i;i=yield n.next(),!i.done;){const e=i.value;r.push(e)}}catch(t){e={error:t}}finally{try{if(i&&!i.done&&(t=n.return))yield t.call(n)}finally{if(e)throw e.error}}return r})}globGenerator(){return s(this,arguments,function*globGenerator_1(){const e=u.getOptions(this.options);const t=[];for(const r of this.patterns){t.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){t.push(new d.Pattern(r.negate,r.segments.concat("**")))}}const r=[];for(const e of f.getSearchPaths(t)){c.debug(`Search path '${e}'`);try{yield i(a.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new h.SearchState(e,1))}const n=[];while(r.length){const o=r.pop();const s=f.match(t,o.path);const c=!!s||f.partialMatch(t,o.path);if(!s&&!c){continue}const u=yield i(DefaultGlobber.stat(o,e,n));if(!u){continue}if(u.isDirectory()){if(s&p.MatchKind.Directory){yield yield i(o.path)}else if(!c){continue}const e=o.level+1;const t=(yield i(a.promises.readdir(o.path))).map(t=>new h.SearchState(l.join(o.path,t),e));r.push(...t.reverse())}else if(s&p.MatchKind.File){yield yield i(o.path)}}})}static create(e,t){return n(this,void 0,void 0,function*(){const r=new DefaultGlobber(t);if(m){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const n=e.split("\n").map(e=>e.trim());for(const e of n){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new d.Pattern(e))}}r.searchPaths.push(...f.getSearchPaths(r.patterns));return r})}static stat(e,t,r){return n(this,void 0,void 0,function*(){let n;if(t.followSymbolicLinks){try{n=yield a.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){c.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{n=yield a.promises.lstat(e.path)}if(n.isDirectory()&&t.followSymbolicLinks){const t=yield a.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some(e=>e===t)){c.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}r.push(t)}return n})}}t.DefaultGlobber=DefaultGlobber},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.4.0";function normalizePaginatedListResponse(e){const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const o=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const i=Object.keys(e.data)[0];const s=e.data[i];e.data=s;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=o;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const o=typeof t==="function"?t:e.request;const i=n.method;const s=n.headers;let c=n.url;return{[Symbol.asyncIterator]:()=>({next(){if(!c){return Promise.resolve({done:true})}return o({method:i,url:c,headers:s}).then(normalizePaginatedListResponse).then(e=>{c=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:e}})}})}}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(o=>{if(o.done){return t}let i=false;function done(){i=true}t=t.concat(n?n(o.value,done):o.value.data);if(i){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},,,function(e,t,r){e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(747);var o=n.realpath;var i=n.realpathSync;var s=process.version;var c=/^v[0-5]\./.test(s);var a=r(117);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(c){return o(e,t,r)}if(typeof t==="function"){r=t;t=null}o(e,t,function(n,o){if(newError(n)){a.realpath(e,t,r)}else{r(n,o)}})}function realpathSync(e,t){if(c){return i(e,t)}try{return i(e,t)}catch(r){if(newError(r)){return a.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=o;n.realpathSync=i}},,function(e){e.exports=require("string_decoder")},,function(e,t,r){var n=r(896);var o=r(621);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var c="\0CLOSE"+Math.random()+"\0";var a="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(s).split("\\}").join(c).split("\\,").join(a).split("\\.").join(u)}function unescapeBraces(e){return e.split(i).join("\\").split(s).join("{").split(c).join("}").split(a).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=o("{","}",e);if(!r)return e.split(",");var n=r.pre;var i=r.body;var s=r.post;var c=n.split(",");c[c.length-1]+="{"+i+"}";var a=parseCommaParts(s);if(s.length){c[c.length-1]+=a.shift();c.push.apply(c,a)}t.push.apply(t,c);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var i=o("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var u=s||a;var l=i.body.indexOf(",")>=0;if(!u&&!l){if(i.post.match(/,.*\}/)){e=i.pre+"{"+i.body+c+i.post;return expand(e)}return[e]}var f;if(u){f=i.body.split(/\.\./)}else{f=parseCommaParts(i.body);if(f.length===1){f=expand(f[0],false).map(embrace);if(f.length===1){var p=i.post.length?expand(i.post,false):[""];return p.map(function(e){return i.pre+f[0]+e})}}}var d=i.pre;var p=i.post.length?expand(i.post,false):[""];var h;if(u){var m=numeric(f[0]);var g=numeric(f[1]);var w=Math.max(f[0].length,f[1].length);var y=f.length==3?Math.abs(numeric(f[2])):1;var b=lte;var v=g0){var O=new Array(_+1).join("0");if(T<0)S="-"+O+S.slice(1);else S=O+S}}}h.push(S)}}else{h=n(f,function(e){return expand(e,false)})}for(var A=0;Atrue).catch(()=>false)}e.exports={pathExists:n(pathExists),pathExistsSync:o.existsSync}},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"}},,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(r=t.MatchKind||(t.MatchKind={}))},function(e,t,r){const{getTree:n,getTreeForProject:o}=r(101);const{parentChainFromNode:i}=r(636);async function getOrderedListForTree(e,t={urlPlaceHolders:{},token:undefined}){const r=await n(e,t);return getOrderedList(r)}async function getOrderedListForProject(e,t,r={urlPlaceHolders:{},token:undefined}){const n=await o(e,t,r);return getOrderedList([n])}async function getOrderedList(e){const t=getFinalLeavesFromTree(e);return t.map(e=>i(e)).sort((e,t)=>t.length-e.length).reduce((e,t)=>{e.push(...t.filter(t=>!e.map(e=>e.project).includes(t.project)));return e},[])}function getFinalLeavesFromTree(e,t=[],r=[]){if(e&&e.length>0){const n=[...r];const o=e.filter(e=>!n.includes(e.project)).reduce((e,t)=>{e.push(...t.children.filter(t=>!e.map(e=>e.project).includes(t.project)));return e},[]);r.push(...e.map(e=>e.project));getFinalLeavesFromTree(o,t,r);t.push(...e.filter(e=>(!e.children||e.children.length===0)&&!t.map(e=>e.project).includes(e.project)));return t}else{return[]}}e.exports={getOrderedListForProject:getOrderedListForProject,getOrderedListForTree:getOrderedListForTree,getOrderedList:getOrderedList}},,function(e,t,r){const{clone:n,doesBranchExist:o,rename:i,merge:s,hasPullRequest:c,getForkedProject:a,getRepository:u}=r(484);const{getRemoteSha:l}=r(172);const{logger:f}=r(79);const{treatUrl:p}=r(352);const{checkUrlExist:d}=r(22);const{getNodeTriggeringJob:h}=r(645);const{copyNodeFolder:m}=r(828);const g=r(747);const w=r(622);async function checkoutDefinitionTree(e,t,r="pr",n={skipProjectCheckout:new Map,skipParallelCheckout:false}){n.skipProjectCheckout=[null,undefined].includes(n.skipProjectCheckout)?new Map:n.skipProjectCheckout;const o=n.skipParallelCheckout?await checkoutDefinitionTreeSequencial(e,t,r,n):await checkoutDefinitionTreeParallel(e,t,r,n);return o}async function checkoutDefinitionTreeParallel(e,t,r,n){const o=h(e,t);f.debug("nodeTriggeringTheJob",o);return Promise.all(t.map(async t=>{try{const i=n.skipCheckout||n.skipProjectCheckout.get(t.project);const s=Promise.resolve({project:t.project,checkoutInfo:await checkoutAndComposeInfo(e,t,o,r,i)});f.info(`[${t.project}] ${i?"Check out skipped.":"Checked out."}`);if(!i){cloneNode(e.config.rootFolder,t,getDir(e.config.rootFolder,t.project,n.skipProjectCheckout.get(t.project)))}return s}catch(e){throw{project:t.project,message:e}}})).then(e=>{return e.reduce((e,t)=>{e[t.project]=t.checkoutInfo;return e},{})}).catch(e=>{f.error(`[${e.project}] Error checking it out. ${e.message}`);throw e.message})}async function checkoutDefinitionTreeSequencial(e,t,r,n){const o=[];const i=h(e,t);f.debug("nodeTriggeringTheJob",i);for(const s of t){try{const t=n.skipCheckout||n.skipProjectCheckout.get(s.project);o.push({project:s.project,checkoutInfo:await checkoutAndComposeInfo(e,s,i,r,t)});f.info(`[${s.project}] ${t?"Check out skipped.":"Checked out."}`);if(!t){cloneNode(e.config.rootFolder,s,getDir(e.config.rootFolder,s.project,n.skipProjectCheckout.get(s.project)))}}catch(e){f.error(`Error checking out project ${s.project}`);throw e}}return o.reduce((e,t)=>{e[t.project]=t.checkoutInfo;return e},{})}async function checkoutAndComposeInfo(e,t,r,n,o){return n==="pr"?await checkoutProjectPullRequestFlow(e,t,r,o):await checkoutProjectBranchFlow(e,t,r,o)}async function checkoutProjectPullRequestFlow(e,t,r,n){f.info(`[${t.project}] Checking out project`);const o=getDir(e.config.rootFolder,t.project);if(!g.existsSync(o)){const i=await getCheckoutInfo(e,t,r,true);if(i==undefined){const e=`[${t.project}] Trying to checking out ${t.project} into '${o}'. It does not exist.`;f.error(e);throw new Error(e)}if(!n){await checkoutNode(e,t,i,o)}return i}else{f.info(`[${t.project}] folder ${o} already exists, nothing to checkout`);return undefined}}async function checkoutNode(e,t,r,o){const c=await l(`${e.config.github.serverUrl}/${r.group}/${r.project}`,r.branch);if(r.merge){const a=await l(`${e.config.github.serverUrl}/${t.project}`,r.targetBranch);f.info(`[${t.project}] Checking out ${e.config.github.serverUrl}/${t.project}:${r.targetBranch} ${a} and merging ${e.config.github.serverUrl}/${r.group}/${r.project}:${r.branch} ${c} into '${o}'`);try{await n(`${e.config.github.serverUrlWithToken}/${t.project}`,o,r.targetBranch)}catch(r){f.error(`[${t.project}] Error checking out (before merging) ${e.config.github.serverUrl}/${t.repo.group}/${t.project}:${e.config.github.targetBranch}`);throw r}try{await s(o,`${e.config.github.serverUrlWithToken}/${r.group}/${r.project}`,r.branch)}catch(n){f.error(`[${t.project}] Error merging ${e.config.github.serverUrl}/${r.group}/${r.project}:${r.branch}. Please manually merge it and relaunch.`);throw n}try{await i(o,r.branch)}catch(e){f.error(`[${t.project}] Error renaming branch (after merging) to ${r.branch}.`);throw e}}else{try{f.info(`[${t.project}] Checking out '${e.config.github.serverUrl}/${r.group}/${r.project}:${r.branch}' ${c} into '${o}'`);await n(`${e.config.github.serverUrlWithToken}/${r.group}/${r.project}`,o,r.branch)}catch(n){f.error(`[${t.project}] Error checking out ${e.config.github.serverUrl}/${r.group}/${r.project}.`);throw n}}}async function checkoutProjectBranchFlow(e,t,r,o){f.info(`[${t.project}] Checking out project`);const i=getDir(e.config.rootFolder,t.project);if(!g.existsSync(i)){const s=await getCheckoutInfo(e,t,r,false);if(s==undefined){const e=`Trying to checking out ${t.project} into '${i}'. It does not exist.`;f.error(e);throw new Error(e)}if(!o){try{f.info(`Checking out '${e.config.github.serverUrl}/${s.group}/${s.project}:${s.targetBranch}' into '${i}'`);await n(`${e.config.github.serverUrlWithToken}/${s.group}/${s.project}`,i,s.targetBranch)}catch(t){f.error(`Error checking out ${e.config.github.serverUrl}/${s.group}/${s.project}.`);throw t}}return s}else{f.info(`folder ${i} already exists, nothing to checkout`);return undefined}}async function composeCheckoutInfo(e,t,r,n,i,s,a,u,l=true){const f=await o(e.octokit,t,r,n);const p=f&&(u||l)?await c(e.octokit,i,a,n,e.config.github.author):undefined;return(!u||p)&&f?{project:r,group:t,branch:n,targetGroup:i,targetBranch:s,merge:l?p:false}:undefined}async function getCheckoutInfo(e,t,r,n){const o=e.config.github.sourceGroup;const i=e.config.github.sourceBranch;const s=t.repo.group;const c=t.repo.name;const a=getTarget(r.project,r.mapping,t.project,t.mapping,e.config.github.targetBranch);const u=await getForkedProjectName(e.octokit,s,c,o);f.debug(`[${s}/${c}] Getting checkout Info. sourceProject: ${u} sourceGroup: ${o}. sourceBranch: ${i}. targetGroup: ${s}. targetBranch: ${a}. Mapping target: ${a}`);const l=await composeCheckoutInfo(e,o,u,i,s,a,c,n);if(l){return l}const p=await composeCheckoutInfo(e,s,c,i,s,a,c,n);if(p){return p}const d=await composeCheckoutInfo(e,s,c,a,s,a,c,false,false);return d}function getTarget(e,t,r,n,o){if(r!==e){if(t&&(t.exclude?!t.exclude.includes(r):true)){const e=getMappingInfo(r,t.dependencies[r],o)||getMappingInfo(r,t.dependencies.default,o);if(e){return e.target}}if(n&&n.dependant&&(n.exclude?!n.exclude.includes(e):true)){const t=getMappingInfo(r,n.dependant[e],o)||getMappingInfo(r,n.dependant.default,o);if(t){return t.target}}}return o}function getMappingInfo(e,t,r){if(t){const n=t.filter(e=>e.source===r);const o=t.filter(e=>r.match(new RegExp(`^${e.source}$`)));const i=n&&n.length?n:o;if(i.length){const t=i[0];if(i.length>1){f.warn(`The mapping for ${e} has a duplication for source branch ${r}. First matching ${t.target} will be used.`)}return t}}return undefined}function getDir(e,t,r=undefined){if(r){return r}const n=e!==undefined&&e!==""?e:".";return`${w.join(n,t.replace(/ |-/g,"_").replace("/","_"))}`}async function getForkedProjectName(e,t,r,n){if(t!==n){const o=await u(e,n,r)||await a(e,t,r,n);return!o||!o.name?r:o.name}else{return r}}async function doesDefinitionFilePlaceHolderExists(e,t,r){const n=p(e,t);const o=await d(n,r);o?f.info(`${n} exists, using it`):f.warn(`${n} does not exists.`);return o?n:undefined}function getPlaceHoldersDefaultValues(e){const t={};const r=/\${([^$]+)}/g;let n;while(n=r.exec(e)){const e=n[1];f.debug(`Placeholder group found ${e}`);const r=/(.*):(.*)/g;const o=r.exec(e);f.debug(`Placeholder value match. ${e}.`,o);if(o!==null){f.debug(`Placeholder key and value. ${o[1]}: ${o[2]}`);t[o[1]]=o[2]}}f.debug(`getPlaceHoldersDefaultValues. definitionFile: ${e}:`,t);return t}async function getPlaceHolders(e,t,r={}){let n=r;if(t.startsWith("http")&&t.includes("${")){n={GROUP:e.config.github.sourceGroup,PROJECT_NAME:e.config.github.project,BRANCH:e.config.github.sourceBranch,...r};const o=await doesDefinitionFilePlaceHolderExists(t,n,e.token);if(!o){n={GROUP:e.config.github.group,PROJECT_NAME:e.config.github.project,BRANCH:e.config.github.targetBranch,...r};const o=await doesDefinitionFilePlaceHolderExists(t,n,e.token);if(!o){n={GROUP:e.config.github.group,PROJECT_NAME:e.config.github.project,BRANCH:e.config.github.sourceBranch,...r};const o=await doesDefinitionFilePlaceHolderExists(t,n,e.token);if(!o){n=getPlaceHoldersDefaultValues(t);if(![null,undefined].includes(n)&&Object.keys(n).length>0){n=getPlaceHolders(e,p(t,n),n)}else{throw new Error(`Definition file ${t} does not exist for any case. Not default values defined for placeholders.`)}}}}}else if(t.startsWith("http")){f.info(`${t} exists, using it`)}return n}function cloneNode(e,t,r){if(t.build&&t.build.clone){f.info(`[${t.project}] Clonning folder ${r} into ${t.build.clone}`);const n=m(e,r,t.build.clone);f.info(`[${t.project}] Clonned folder ${r} into ${n}`)}}e.exports={checkoutDefinitionTree:checkoutDefinitionTree,getCheckoutInfo:getCheckoutInfo,getDir:getDir,getPlaceHolders:getPlaceHolders,getTarget:getTarget,getForkedProjectName:getForkedProjectName,getPlaceHoldersDefaultValues:getPlaceHoldersDefaultValues}},,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},,,,,,,,,,,,,,,,function(e,t,r){const{getTree:n,getTreeForProject:o}=r(101);const{getOrderedListForTree:i,getOrderedListForProject:s}=r(328);const{readDefinitionFile:c}=r(799);const{parentChainFromNode:a}=r(636);const{treatUrl:u}=r(824);e.exports={getTree:n,getTreeForProject:o,getOrderedListForTree:i,getOrderedListForProject:s,readDefinitionFile:c,parentChainFromNode:a,treatUrl:u}},function(e,t,r){"use strict";const n=r(676).fromCallback;e.exports={move:n(r(500))}},,,function(e){function stringify(e,t={}){const r=t.EOL||"\n";const n=JSON.stringify(e,t?t.replacer:null,t.spaces);return n.replace(/\n/g,r)+r}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},function(e){e.exports=require("assert")},,function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=o(r(470));const s=r(590);const c=r(888);const a=r(870);const u=r(855);const l=r(532);const f=r(401);const p=r(622);class DefaultArtifactClient{static create(){return new DefaultArtifactClient}uploadArtifact(e,t,r,o){return n(this,void 0,void 0,function*(){a.checkArtifactName(e);const n=s.getUploadSpecification(e,r,t);const u={artifactName:e,artifactItems:[],size:0,failedItems:[]};const l=new c.UploadHttpClient;if(n.length===0){i.warning(`No files found that can be uploaded`)}else{const t=yield l.createArtifactInFileContainer(e);if(!t.fileContainerResourceUrl){i.debug(t.toString());throw new Error("No URL provided by the Artifact Service to upload an artifact to")}i.debug(`Upload Resource URL: ${t.fileContainerResourceUrl}`);const r=yield l.uploadArtifactToFileContainer(t.fileContainerResourceUrl,n,o);yield l.patchArtifactSize(r.totalSize,e);i.info(`Finished uploading artifact ${e}. Reported size is ${r.uploadSize} bytes. There were ${r.failedItems.length} items that failed to upload`);u.artifactItems=n.map(e=>e.absoluteFilePath);u.size=r.uploadSize;u.failedItems=r.failedItems}return u})}downloadArtifact(e,t,r){return n(this,void 0,void 0,function*(){const n=new u.DownloadHttpClient;const o=yield n.listArtifacts();if(o.count===0){throw new Error(`Unable to find any artifacts for the associated workflow`)}const s=o.value.find(t=>{return t.name===e});if(!s){throw new Error(`Unable to find an artifact with the name: ${e}`)}const c=yield n.getContainerItems(s.name,s.fileContainerResourceUrl);if(!t){t=f.getWorkSpaceDirectory()}t=p.normalize(t);t=p.resolve(t);const d=l.getDownloadSpecification(e,c.value,t,(r===null||r===void 0?void 0:r.createArtifactFolder)||false);if(d.filesToDownload.length===0){i.info(`No downloadable files were found for the artifact: ${s.name}`)}else{yield a.createDirectoriesForArtifact(d.directoryStructure);i.info("Directory structure has been setup for the artifact");yield a.createEmptyFilesForArtifact(d.emptyFilesToCreate);yield n.downloadSingleArtifact(d.filesToDownload)}return{artifactName:e,downloadPath:d.rootDownloadLocation}})}downloadAllArtifacts(e){return n(this,void 0,void 0,function*(){const t=new u.DownloadHttpClient;const r=[];const n=yield t.listArtifacts();if(n.count===0){i.info("Unable to find any artifacts for the associated workflow");return r}if(!e){e=f.getWorkSpaceDirectory()}e=p.normalize(e);e=p.resolve(e);let o=0;while(o"\n"+e.project)}`);const w=await n(e,g,"branch",t);a.endGroup();a.startGroup(`[Branch Flow] Checkout Summary...`);l(w);a.endGroup();if(!t.skipExecution){const n=t.command?await p(e.config.rootFolder,g,t.command,t).then(()=>true).catch(e=>e):await f(e.config.rootFolder,g,e.config.github.repository,t).then(()=>true).catch(e=>e);await h(e.config.github.inputs.definitionFile,n,r);if(n!==true){u.error(n);throw new Error(`Command executions have failed, please review latest execution ${n}`)}}else{u.info("Execution has been skipped.")}}e.exports={start:start}},,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)()})}},,,,,function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(474);e.exports={remove:n(o),removeSync:o.sync}},,,,,function(e){e.exports=require("crypto")},,function(e){function formatDate(e){return`${e.getFullYear()}${e.getMonth()}${e.getDate()}${e.getHours()}${e.getMinutes()}${e.getSeconds()}`}e.exports={formatDate:formatDate}},,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(357);const o=r(622);const i=r(972);const s=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){n(e,`Parameter 'itemPath' must not be empty`);e=i.safeTrimTrailingSeparator(e);if(!i.hasRoot(e)){this.segments=e.split(o.sep)}else{let t=e;let r=i.dirname(t);while(r!==t){const e=o.basename(t);this.segments.unshift(e);t=r;r=i.dirname(t)}this.segments.unshift(t)}}else{n(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t{t[r.toLowerCase()]=e[r];return t},{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach(o=>{if(n.isPlainObject(t[o])){if(!(o in e))Object.assign(r,{[o]:t[o]});else r[o]=mergeDeep(e[o],t[o])}else{Object.assign(r,{[o]:t[o]})}});return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}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);removeUndefinedProperties(r);removeUndefinedProperties(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 i=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(i);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 o=e[r],i=[];if(isDefined(o)&&o!==""){if(typeof o==="string"||typeof o==="number"||typeof o==="boolean"){o=o.toString();if(n&&n!=="*"){o=o.substring(0,parseInt(n,10))}i.push(encodeValue(t,o,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(o)){o.filter(isDefined).forEach(function(e){i.push(encodeValue(t,e,isKeyOperator(t)?r:""))})}else{Object.keys(o).forEach(function(e){if(isDefined(o[e])){i.push(encodeValue(t,o[e],e))}})}}else{const e=[];if(Array.isArray(o)){o.filter(isDefined).forEach(function(r){e.push(encodeValue(t,r))})}else{Object.keys(o).forEach(function(r){if(isDefined(o[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,o[r].toString()))}})}if(isKeyOperator(t)){i.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){i.push(e.join(","))}}}}else{if(t===";"){if(isDefined(o)){i.push(encodeUnreserved(r))}}else if(o===""&&(t==="&"||t==="?")){i.push(encodeUnreserved(r)+"=")}else if(o===""){i.push("")}}return i}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,n,o){if(n){let e="";const o=[];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);o.push(getValues(t,e,n[1],n[2]||n[3]))});if(e&&e!=="+"){var i=",";if(e==="?"){i="&"}else if(e!=="#"){i=e}return(o.length!==0?e:"")+o.join(i)}else{return o.join(",")}}else{return encodeReserved(o)}})}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 o;let i=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const s=extractUrlVariableNames(r);r=parseUrl(r).expand(i);if(!/^http/.test(r)){r=e.baseUrl+r}const c=Object.keys(e).filter(e=>s.includes(e)).concat("baseUrl");const a=omit(i,c);const u=/application\/octet-stream/i.test(n.accept);if(!u){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,a)}else{if("data"in a){o=a.data}else{if(Object.keys(a).length){o=a}else{n["content-length"]=0}}}if(!n["content-type"]&&typeof o!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof o==="undefined"){o=""}return Object.assign({method:t,url:r,headers:n},typeof o!=="undefined"?{body:o}: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 s="6.0.8";const c=`octokit-endpoint.js/${s} ${o.getUserAgent()}`;const a={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":c},mediaType:{format:"",previews:[]}};const u=withDefaults(null,a);t.endpoint=u},function(e,t,r){"use strict";var n=r(945);function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(e){return typeof e==="undefined"}e.exports=new n("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},,,function(e,t,r){"use strict";const n=r(747);const o=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 i;try{i=n.openSync(e,"r");n.readSync(i,r,0,t,0);n.closeSync(i)}catch(e){}return o(r.toString())}e.exports=readShebang},,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},,,function(e,t,r){const{create:n}=r(214);const o=r(470);const i=r(787);const{findFilesToUpload:s}=r(819);const{logger:c}=r(79);var a=r(357);async function run(e,t=["success","failure"]){a(e,"archiveArtifacts is not defined");a(e.paths,"archiveArtifacts.paths is not defined");a(e.name,"archiveArtifacts.name is not defined");const r=e.paths.filter(e=>e&&e.path&&t.includes(e.on)).reduce((e,t)=>e.concat(t.path,"\n"),"").trim();try{c.info(`Uploading artifacts for path [${r}]`);const t=await s(r);if(t.filesToUpload.length===0){switch(e.ifNoFilesFound){case i.error:{o.setFailed(`[ERROR] No files were found with the provided path: ${r}. No artifacts will be uploaded.`);break}case i.ignore:{o.info(`[INFO] No files were found with the provided path: ${r}. No artifacts will be uploaded.`);break}case i.warn:default:{o.warning(`[WARNING] No files were found with the provided path: ${r}. No artifacts will be uploaded.`)}}}else{o.info(`[INFO] With the provided path (${r}), there will be ${t.filesToUpload.length} file(s) uploaded`);o.debug(`[DEBUG] Root artifact directory is ${t.rootDirectory}`);const i=n();const s={continueOnError:false};const c=await i.uploadArtifact(e.name,t.filesToUpload,t.rootDirectory,s);if(c.failedItems.length>0){o.setFailed(`[ERROR] An error was encountered when uploading ${c.artifactName}. There were ${c.failedItems.length} items that failed to upload.`)}else{o.info(`[INFO] Artifact ${c.artifactName} has been successfully uploaded!`)}return c}}catch(e){o.setFailed(e.message)}return undefined}e.exports={run:run}},,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUploadFileConcurrency(){return 2}t.getUploadFileConcurrency=getUploadFileConcurrency;function getUploadChunkSize(){return 8*1024*1024}t.getUploadChunkSize=getUploadChunkSize;function getRetryLimit(){return 5}t.getRetryLimit=getRetryLimit;function getRetryMultiplier(){return 1.5}t.getRetryMultiplier=getRetryMultiplier;function getInitialRetryIntervalInMilliseconds(){return 3e3}t.getInitialRetryIntervalInMilliseconds=getInitialRetryIntervalInMilliseconds;function getDownloadFileConcurrency(){return 2}t.getDownloadFileConcurrency=getDownloadFileConcurrency;function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_TOKEN env variable")}return e}t.getRuntimeToken=getRuntimeToken;function getRuntimeUrl(){const e=process.env["ACTIONS_RUNTIME_URL"];if(!e){throw new Error("Unable to get ACTIONS_RUNTIME_URL env variable")}return e}t.getRuntimeUrl=getRuntimeUrl;function getWorkFlowRunId(){const e=process.env["GITHUB_RUN_ID"];if(!e){throw new Error("Unable to get GITHUB_RUN_ID env variable")}return e}t.getWorkFlowRunId=getWorkFlowRunId;function getWorkSpaceDirectory(){const e=process.env["GITHUB_WORKSPACE"];if(!e){throw new Error("Unable to get GITHUB_WORKSPACE env variable")}return e}t.getWorkSpaceDirectory=getWorkSpaceDirectory},function(e,t,r){const n=r(747);const o=r(87);const i=r(622);const s=r(373);const c=n.constants&&o.constants?{fs:n.constants,os:o.constants}:process.binding("constants");const a=r(569);const u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",l=/XXXXXX/,f=3,p=(c.O_CREAT||c.fs.O_CREAT)|(c.O_EXCL||c.fs.O_EXCL)|(c.O_RDWR||c.fs.O_RDWR),d=c.EBADF||c.os.errno.EBADF,h=c.ENOENT||c.os.errno.ENOENT,m=448,g=384,w="exit",y="SIGINT",b=[];var v=false;function _randomChars(e){var t=[],r=null;try{r=s.randomBytes(e)}catch(t){r=s.pseudoRandomBytes(e)}for(var n=0;n0)return _getUniqueName();return i(new Error("Could not get a unique tmp filename, max tries reached "+e))}i(null,e)})}catch(e){i(e)}})()}function tmpNameSync(e){var t=_parseArguments(e),r=t[0],o=!isBlank(r.name)?1:r.tries||f;if(isNaN(o)||o<0)throw new Error("Invalid tries");if(r.template&&!r.template.match(l))throw new Error("Invalid template provided");do{const e=_generateTmpName(r);try{n.statSync(e)}catch(t){return e}}while(o-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){var r=_parseArguments(e,t),o=r[0],i=r[1];tmpName(o,function _tmpNameCreated(e,t){if(e)return i(e);n.open(t,p,o.mode||g,function _fileCreated(e,r){if(e)return i(e);if(o.discardDescriptor){return n.close(r,function _discardCallback(e){if(e){try{n.unlinkSync(t)}catch(t){if(!isENOENT(t)){e=t}}return i(e)}i(null,t,undefined,_prepareTmpFileRemoveCallback(t,-1,o))})}if(o.detachDescriptor){return i(null,t,r,_prepareTmpFileRemoveCallback(t,-1,o))}i(null,t,r,_prepareTmpFileRemoveCallback(t,r,o))})})}function fileSync(e){var t=_parseArguments(e),r=t[0];const o=r.discardDescriptor||r.detachDescriptor;const i=tmpNameSync(r);var s=n.openSync(i,p,r.mode||g);if(r.discardDescriptor){n.closeSync(s);s=undefined}return{name:i,fd:s,removeCallback:_prepareTmpFileRemoveCallback(i,o?-1:s,r)}}function dir(e,t){var r=_parseArguments(e,t),o=r[0],i=r[1];tmpName(o,function _tmpNameCreated(e,t){if(e)return i(e);n.mkdir(t,o.mode||m,function _dirCreated(e){if(e)return i(e);i(null,t,_prepareTmpDirRemoveCallback(t,o))})})}function dirSync(e){var t=_parseArguments(e),r=t[0];const o=tmpNameSync(r);n.mkdirSync(o,r.mode||m);return{name:o,removeCallback:_prepareTmpDirRemoveCallback(o,r)}}function _removeFileAsync(e,t){const r=function(e){if(e&&!isENOENT(e)){return t(e)}t()};if(0<=e[0])n.close(e[0],function(t){n.unlink(e[1],r)});else n.unlink(e[1],r)}function _removeFileSync(e){try{if(0<=e[0])n.closeSync(e[0])}catch(e){if(!isEBADF(e)&&!isENOENT(e))throw e}finally{try{n.unlinkSync(e[1])}catch(e){if(!isENOENT(e))throw e}}}function _prepareTmpFileRemoveCallback(e,t,r){const n=_prepareRemoveCallback(_removeFileSync,[t,e]);const o=_prepareRemoveCallback(_removeFileAsync,[t,e],n);if(!r.keep)b.unshift(n);return o}function _rimrafRemoveDirWrapper(e,t){a(e,t)}function _rimrafRemoveDirSyncWrapper(e,t){try{return t(null,a.sync(e))}catch(e){return t(e)}}function _prepareTmpDirRemoveCallback(e,t){const r=t.unsafeCleanup?_rimrafRemoveDirWrapper:n.rmdir.bind(n);const o=t.unsafeCleanup?_rimrafRemoveDirSyncWrapper:n.rmdirSync.bind(n);const i=_prepareRemoveCallback(o,e);const s=_prepareRemoveCallback(r,e,i);if(!t.keep)b.unshift(i);return s}function _prepareRemoveCallback(e,t,r){var n=false;return function _cleanupCallback(o){o=o||function(){};if(!n){const i=r||_cleanupCallback;const s=b.indexOf(i);if(s>=0)b.splice(s,1);n=true;if(e.length===1){try{e(t);return o(null)}catch(e){return o(e)}}else return e(t,o)}else return o(new Error("cleanup callback has already been called"))}}function _garbageCollector(){if(!v)return;while(b.length){try{b[0]()}catch(e){}}}function isEBADF(e){return isExpectedError(e,-d,"EBADF")}function isENOENT(e){return isExpectedError(e,-h,"ENOENT")}function isExpectedError(e,t,r){return e.code===t||e.code===r}function isBlank(e){return e===null||e===undefined||!e.trim()}function setGracefulCleanup(){v=true}function _getTmpDir(){return o.tmpdir()}function _is_legacy_listener(e){return(e.name==="_exit"||e.name==="_uncaughtExceptionThrown")&&e.toString().indexOf("_garbageCollector();")>-1}function _safely_install_sigint_listener(){const e=process.listeners(y);const t=[];for(let r=0,n=e.length;r=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}else if(t.indexOf(":")>=0){t.split(":").forEach(function(e){o.unshift(parseFloat(e,10))});t=0;n=1;o.forEach(function(e){t+=e*n;n*=60});return r*t}return r*parseFloat(t,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return s.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.isNegativeZero(e))}e.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},,,,,,,,function(e,t,r){"use strict";const n=r(869);const o=r(622);const i=r(669);const s=r(159);const c=s("10.5.0");const a=e=>c?n.stat(e,{bigint:true}):n.stat(e);const u=e=>c?n.statSync(e,{bigint:true}):n.statSync(e);function getStats(e,t){return Promise.all([a(e),a(t).catch(e=>{if(e.code==="ENOENT")return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}function getStatsSync(e,t){let r;const n=u(e);try{r=u(t)}catch(e){if(e.code==="ENOENT")return{srcStat:n,destStat:null};throw e}return{srcStat:n,destStat:r}}function checkPaths(e,t,r,n){i.callbackify(getStats)(e,t,(o,i)=>{if(o)return n(o);const{srcStat:s,destStat:c}=i;if(c&&areIdentical(s,c)){return n(new Error("Source and destination must not be the same."))}if(s.isDirectory()&&isSrcSubdir(e,t)){return n(new Error(errMsg(e,t,r)))}return n(null,{srcStat:s,destStat:c})})}function checkPathsSync(e,t,r){const{srcStat:n,destStat:o}=getStatsSync(e,t);if(o&&areIdentical(n,o)){throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:n,destStat:o}}function checkParentPaths(e,t,r,i,s){const a=o.resolve(o.dirname(e));const u=o.resolve(o.dirname(r));if(u===a||u===o.parse(u).root)return s();const l=(n,o)=>{if(n){if(n.code==="ENOENT")return s();return s(n)}if(areIdentical(t,o)){return s(new Error(errMsg(e,r,i)))}return checkParentPaths(e,t,u,i,s)};if(c)n.stat(u,{bigint:true},l);else n.stat(u,l)}function checkParentPathsSync(e,t,r,n){const i=o.resolve(o.dirname(e));const s=o.resolve(o.dirname(r));if(s===i||s===o.parse(s).root)return;let c;try{c=u(s)}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,c)){throw new Error(errMsg(e,r,n))}return checkParentPathsSync(e,t,s,n)}function areIdentical(e,t){if(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev){if(c||t.inoe);const n=o.resolve(t).split(o.sep).filter(e=>e);return r.reduce((e,t,r)=>e&&n[r]===t,true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir}},,function(e,t,r){"use strict";const n=r(669);let o;if(typeof n.getSystemErrorName==="function"){e.exports=n.getSystemErrorName}else{try{o=process.binding("uv");if(typeof o.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);o=null}e.exports=(e=>errname(o,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}`}},,,,function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=i(r(87));const c=r(82);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=a+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+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},,,,,,,,,,,,function(e){function getBuild(e,t){const r=t.build?overrideProperties(t.default,t.build.find(t=>e===t.project)):t.default;delete r.project;return manipulateArchiveArtifacts(manipulateProperties(r),e)}function overrideProperties(e,t,r=false){const n={...e};const o={...t};Object.entries(n).filter(([e])=>o[e]).forEach(([e,t])=>{if(typeof t==="object"){n[e]=overrideProperties(n[e],o[e],r||o.merge&&o.merge.includes(e))}else{n[e]=r||o.merge&&o.merge.includes(e)?mergeElements(n[e],o[e],e):o[e]}});Object.keys(o).filter(e=>!n[e]).forEach(e=>n[e]=o[e]);return n}function mergeElements(e,t){const r=typeof e==="string"?[...e.split("\n")]:[...e];const n=typeof t==="string"?[...t.split("\n")]:[...t];return[...r,...n]}function manipulateProperties(e){const t={...e};Object.entries(t).forEach(([e,r])=>{if(typeof r==="object"&&!Array.isArray(r)){t[e]=manipulateProperties(t[e])}else{t[e]=typeof r==="string"&&r.includes("\n")?r.split("\n").filter(e=>e):r}});return t}function manipulateArchiveArtifacts(e,t){const r=e["archive-artifacts"];if(r){r["if-no-files-found"]=e["archive-artifacts"]["if-no-files-found"]?r["if-no-files-found"]:"warn";r.dependencies=r.dependencies?r.dependencies:"none";r.name=r.name?r.name:t.includes("/")?t.split("/")[1]:t;r.paths=treatArchiveArtifactsPath(r.path)}return e}function treatArchiveArtifactsPath(e){return(Array.isArray(e)?e:e.split("\n")).filter(e=>e).reduce((e,t)=>{e.push(convertPathExpressionToPath(t));return e},[])}function convertPathExpressionToPath(e){const t=e.match(/([^@]*)@?(always|success|failure)?/);return t?{path:t[1],on:t[2]?t[2]:"success"}:e}function treatProject(e,t){return{build:getBuild(e,t)}}e.exports={treatProject:treatProject}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(796);var o=r(12);var i=r(753);var s=r(898);var c=r(68);function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t)n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=(async()=>({type:"unauthenticated"}))}else{const r=c.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const r=e.authStrategy(Object.assign({request:this.request},e.auth));t.wrap("request",r.hook);this.auth=r}const u=this.constructor;u.plugins.forEach(t=>{Object.assign(this,t(this,e))})}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(e,...t){var r;if(e instanceof Array){console.warn(["Passing an array of plugins to Octokit.plugin() has been deprecated.","Instead of:"," Octokit.plugin([plugin1, plugin2, ...])","Use:"," Octokit.plugin(plugin1, plugin2, ...)"].join("\n"))}const n=this.plugins;let o=[...e instanceof Array?e:[e],...t];const i=(r=class extends(this){},r.plugins=n.concat(o.filter(e=>!n.includes(e))),r);return i}}Octokit.VERSION=a;Octokit.plugins=[];t.Octokit=Octokit},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(870);class HttpManager{constructor(e,t){if(e<1){throw new Error("There must be at least one client")}this.userAgent=t;this.clients=new Array(e).fill(n.createHttpClient(t))}getClient(e){return this.clients[e]}disposeAndReplaceClient(e){this.clients[e].dispose();this.clients[e]=n.createHttpClient(this.userAgent)}disposeAndReplaceAllClients(){for(const[e]of this.clients.entries()){this.disposeAndReplaceClient(e)}}}t.HttpManager=HttpManager},function(e,t,r){var n=r(49);var o=r(562);var i=r(747);var s=function(){};var c=/^v?\.0/.test(process.version);var a=function(e){return typeof e==="function"};var u=function(e){if(!c)return false;if(!i)return false;return(e instanceof(i.ReadStream||s)||e instanceof(i.WriteStream||s))&&a(e.close)};var l=function(e){return e.setHeader&&a(e.abort)};var f=function(e,t,r,i){i=n(i);var c=false;e.on("close",function(){c=true});o(e,{readable:t,writable:r},function(e){if(e)return i(e);c=true;i()});var f=false;return function(t){if(c)return;if(f)return;f=true;if(u(e))return e.close(s);if(l(e))return e.abort();if(a(e.destroy))return e.destroy();i(t||new Error("stream was destroyed"))}};var p=function(e){e()};var d=function(e,t){return e.pipe(t)};var h=function(){var e=Array.prototype.slice.call(arguments);var t=a(e[e.length-1]||s)&&e.pop()||s;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(o,i){var s=i0;return f(o,s,c,function(e){if(!r)r=e;if(e)n.forEach(p);if(s)return;n.forEach(p);t(r)})});return e.reduce(d)};e.exports=h},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(794));var o=_interopDefault(r(605));var i=_interopDefault(r(835));var s=_interopDefault(r(211));var c=_interopDefault(r(761));const a=n.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const o=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},o=r.size;let i=o===undefined?0:o;var s=r.timeout;let c=s===undefined?0:s;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[p]={body:e,disturbed:false,error:null};this.size=i;this.timeout=c;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[p].error=r})}}Body.prototype={get body(){return this[p].body},get bodyUsed(){return this[p].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()}),{[u]: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[p].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[p].disturbed=true;if(this[p].error){return Body.Promise.reject(this[p].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 o=0;let i=false;return new Body.Promise(function(n,s){let c;if(e.timeout){c=setTimeout(function(){i=true;s(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"){i=true;s(t)}else{s(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(i||t===null){return}if(e.size&&o+t.length>e.size){i=true;s(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}o+=t.length;r.push(t)});t.on("end",function(){if(i){return}clearTimeout(c);try{n(Buffer.concat(r,o))}catch(t){s(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof f!=="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 o,i;if(r){o=/charset=([^;]*)/i.exec(r)}i=e.slice(0,1024).toString();if(!o&&i){o=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[g]=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[g],e);if(t===undefined){return null}return this[g][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[g]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[g][t].join(", ")}:function(t){return[t.toLowerCase(),e[g][t].join(", ")]})}const w=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(y);r[w]={target:e,kind:t,index:0};return r}const y=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==y){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[w];const t=e.target,r=e.kind,n=e.index;const o=getHeaders(t,r);const i=o.length;if(n>=i){return{value:undefined,done:true}}this[w].index=n+1;return{value:o[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(y,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[g]);const r=find(e[g],"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(h.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(m.test(n)){continue}if(t[g][r]===undefined){t[g][r]=[n]}else{t[g][r].push(n)}}}else if(!m.test(e[r])){t[g][r]=[e[r]]}}return t}const b=Symbol("Response internals");const v=o.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[b]={url:t.url,status:r,statusText:t.statusText||v[r],headers:n,counter:t.counter}}get url(){return this[b].url||""}get status(){return this[b].status}get ok(){return this[b].status>=200&&this[b].status<300}get redirected(){return this[b].counter>0}get statusText(){return this[b].statusText}get headers(){return this[b].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 E=Symbol("Request internals");const T=i.parse;const S=i.format;const _="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[E]==="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=T(e.href)}else{r=T(`${e}`)}e={}}else{r=T(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 o=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,o,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const i=new Headers(t.headers||e.headers||{});if(o!=null&&!i.has("Content-Type")){const e=extractContentType(o);if(e){i.append("Content-Type",e)}}let s=isRequest(e)?e.signal:null;if("signal"in t)s=t.signal;if(s!=null&&!isAbortSignal(s)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[E]={method:n,redirect:t.redirect||e.redirect||"follow",headers:i,parsedURL:r,signal:s};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[E].method}get url(){return S(this[E].parsedURL)}get headers(){return this[E].headers}get redirect(){return this[E].redirect}get signal(){return this[E].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[E].parsedURL;const r=new Headers(e[E].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&&!_){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let o=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){o="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){o=String(t)}}if(o){r.set("Content-Length",o)}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 i=e.agent;if(typeof i==="function"){i=i(t)}if(!r.has("Connection")&&!i){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:i})}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 O=n.PassThrough;const A=i.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,i){const a=new Request(e,t);const u=getNodeRequestOptions(a);const l=(u.protocol==="https:"?s:o).request;const f=a.signal;let p=null;const d=function abort(){let e=new AbortError("The user aborted a request.");i(e);if(a.body&&a.body instanceof n.Readable){a.body.destroy(e)}if(!p||!p.body)return;p.body.emit("error",e)};if(f&&f.aborted){d();return}const h=function abortAndFinalize(){d();finalize()};const m=l(u);let g;if(f){f.addEventListener("abort",h)}function finalize(){m.abort();if(f)f.removeEventListener("abort",h);clearTimeout(g)}if(a.timeout){m.once("socket",function(e){g=setTimeout(function(){i(new FetchError(`network timeout at: ${a.url}`,"request-timeout"));finalize()},a.timeout)})}m.on("error",function(e){i(new FetchError(`request to ${a.url} failed, reason: ${e.message}`,"system",e));finalize()});m.on("response",function(e){clearTimeout(g);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const o=n===null?null:A(a.url,n);switch(a.redirect){case"error":i(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${a.url}`,"no-redirect"));finalize();return;case"manual":if(o!==null){try{t.set("Location",o)}catch(e){i(e)}}break;case"follow":if(o===null){break}if(a.counter>=a.follow){i(new FetchError(`maximum redirect reached at: ${a.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(a.headers),follow:a.follow,counter:a.counter+1,agent:a.agent,compress:a.compress,method:a.method,body:a.body,signal:a.signal,timeout:a.timeout,size:a.size};if(e.statusCode!==303&&a.body&&getTotalBytes(a)===null){i(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)&&a.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(o,n)));finalize();return}}e.once("end",function(){if(f)f.removeEventListener("abort",h)});let n=e.pipe(new O);const o={url:a.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:a.size,timeout:a.timeout,counter:a.counter};const s=t.get("Content-Encoding");if(!a.compress||a.method==="HEAD"||s===null||e.statusCode===204||e.statusCode===304){p=new Response(n,o);r(p);return}const u={flush:c.Z_SYNC_FLUSH,finishFlush:c.Z_SYNC_FLUSH};if(s=="gzip"||s=="x-gzip"){n=n.pipe(c.createGunzip(u));p=new Response(n,o);r(p);return}if(s=="deflate"||s=="x-deflate"){const t=e.pipe(new O);t.once("data",function(e){if((e[0]&15)===8){n=n.pipe(c.createInflate())}else{n=n.pipe(c.createInflateRaw())}p=new Response(n,o);r(p)});return}if(s=="br"&&typeof c.createBrotliDecompress==="function"){n=n.pipe(c.createBrotliDecompress());p=new Response(n,o);r(p);return}p=new Response(n,o);r(p)});writeToStream(m,a)})}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},,,function(e,t,r){"use strict";var n=r(740);var o=r(556);var i=r(93);var s=r(723);var c=r(910);var a=Object.prototype.hasOwnProperty;var u=1;var l=2;var f=3;var p=4;var d=1;var h=2;var m=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var w=/[\x85\u2028\u2029]/;var y=/[,\[\]\{\}]/;var b=/^(?:!|!!|![a-z\-]+!)$/i;var v=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var E=new Array(256);var T=new Array(256);for(var S=0;S<256;S++){E[S]=simpleEscapeSequence(S)?1:0;T[S]=simpleEscapeSequence(S)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||c;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(e,t){return new o(t,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var _={YAML:function handleYamlDirective(e,t,r){var n,o,i;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}o=parseInt(n[1],10);i=parseInt(n[2],10);if(o!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=i<2;if(i!==1&&i!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,o;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];o=r[1];if(!b.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!v.test(o)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}e.tagMap[n]=o}};function captureSegment(e,t,r,n){var o,i,s,c;if(t1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,o,i,s,c,a,u,l,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||r&&is_FLOW_INDICATOR(o)){return false}}e.kind="scalar";e.result="";i=s=e.position;c=false;while(d!==0){if(d===58){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||r&&is_FLOW_INDICATOR(o)){break}}else if(d===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){a=e.line;u=e.lineStart;l=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){c=true;d=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=a;e.lineStart=u;e.lineIndent=l;break}}if(c){captureSegment(e,i,s,false);writeFoldedLines(e,e.line-a);i=s=e.position;c=false}if(!is_WHITE_SPACE(d)){s=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,i,s,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,t){var r,n,o;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=o=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;o=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,o,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=o=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;o=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,n,o,i,s,c;c=e.input.charCodeAt(e.position);if(c!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((c=e.input.charCodeAt(e.position))!==0){if(c===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(c===92){captureSegment(e,r,e.position,true);c=e.input.charCodeAt(++e.position);if(is_EOL(c)){skipSeparationSpace(e,false,t)}else if(c<256&&E[c]){e.result+=T[c];e.position++}else if((s=escapedHexLen(c))>0){o=s;i=0;for(;o>0;o--){c=e.input.charCodeAt(++e.position);if((s=fromHexCode(c))>=0){i=(i<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(i);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(c)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,o=e.tag,i,s=e.anchor,c,a,l,f,p,d={},h,m,g,w;w=e.input.charCodeAt(e.position);if(w===91){a=93;p=false;i=[]}else if(w===123){a=125;p=true;i={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=i}w=e.input.charCodeAt(++e.position);while(w!==0){skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if(w===a){e.position++;e.tag=o;e.anchor=s;e.kind=p?"mapping":"sequence";e.result=i;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}m=h=g=null;l=f=false;if(w===63){c=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(c)){l=f=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;composeNode(e,t,u,false,true);m=e.tag;h=e.result;skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if((f||e.line===n)&&w===58){l=true;w=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,u,false,true);g=e.result}if(p){storeMappingPair(e,i,d,m,h,g)}else if(l){i.push(storeMappingPair(e,null,d,m,h,g))}else{i.push(h)}skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if(w===44){r=true;w=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,o,i=d,s=false,c=false,a=t,u=0,l=false,f,p;p=e.input.charCodeAt(e.position);if(p===124){o=false}else if(p===62){o=true}else{return false}e.kind="scalar";e.result="";while(p!==0){p=e.input.charCodeAt(++e.position);if(p===43||p===45){if(d===i){i=p===43?m:h}else{throwError(e,"repeat of a chomping mode identifier")}}else if((f=fromDecimalCode(p))>=0){if(f===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!c){a=t+f-1;c=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(p)){do{p=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(p));if(p===35){do{p=e.input.charCodeAt(++e.position)}while(!is_EOL(p)&&p!==0)}}while(p!==0){readLineBreak(e);e.lineIndent=0;p=e.input.charCodeAt(e.position);while((!c||e.lineIndenta){a=e.lineIndent}if(is_EOL(p)){u++;continue}if(e.lineIndentt)&&a!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(composeNode(e,t,p,true,o)){if(g){h=e.result}else{m=e.result}}if(!g){storeMappingPair(e,u,f,d,h,m,i,s);d=h=m=null}skipSeparationSpace(e,true,-1);y=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&y!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndentt){d=1}else if(e.lineIndent===t){d=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(g=0,w=e.implicitTypes.length;g tag; it should be "'+y.kind+'", not "'+e.kind+'"')}if(!y.resolve(e.result)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=y.construct(e.result);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else{throwError(e,"unknown tag !<"+e.tag+">")}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||m}function readDocument(e){var t=e.position,r,n,o,i=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap={};e.anchorMap={};while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}i=true;s=e.input.charCodeAt(++e.position);r=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);o=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;r=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}o.push(e.input.slice(r,e.position))}if(s!==0)readLineBreak(e);if(a.call(_,n)){_[n](e,n,o)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(i){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&w.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position&|;, *?])/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},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 o=_interopDefault(r(49));const i=o(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(){i(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const o=Object.assign({},r.request);if(r.request.headers.authorization){o.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=o}}t.RequestError=RequestError},,,function(e,t,r){var n=r(794).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var o=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var i=Object.keys(r);for(var s=0,c=i.length;sthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){o.emit("error",e);o.readable=false;return}o.fd=t;o.emit("open",t);o._read()})}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var o=Object.keys(r);for(var i=0,s=o.length;i= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},,,function(e,t,r){"use strict";const n=r(666);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const c=r(431);const a=r(102);const u=r(82);const l=i(r(87));const f=i(r(622));const p=r(742);var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${l.EOL}${r}${l.EOL}${t}`;a.issueCommand("ENV",n)}else{c.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){c.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){a.issueCommand("PATH",e)}else{c.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${f.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter(e=>e!=="");return r}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const o=getInput(e,t);if(r.includes(o))return true;if(n.includes(o))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);c.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){c.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=d.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){c.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){c.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){c.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){c.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){c.issue("group",e)}t.startGroup=startGroup;function endGroup(){c.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){c.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,function*(){return yield p.OidcClient.getIDToken(e)})}t.getIDToken=getIDToken},,function(e,t,r){"use strict";const n=r(149);const o=r(900);const i=r(849);e.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:o.createLink,createLinkSync:o.createLinkSync,ensureLink:o.createLink,ensureLinkSync:o.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}},,function(e,t,r){"use strict";const n=r(598);const o=r(622);const i=r(357);const s=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(t=>{e[t]=e[t]||n[t];t=t+"Sync";e[t]=e[t]||n[t]});e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let n=0;if(typeof t==="function"){r=t;t={}}i(e,"rimraf: missing path");i.strictEqual(typeof e,"string","rimraf: path should be a string");i.strictEqual(typeof r,"function","rimraf: callback function required");i(t,"rimraf: invalid options argument provided");i.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,function CB(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&nrimraf_(e,t,CB),r)}if(o.code==="ENOENT")o=null}r(o)})}function rimraf_(e,t,r){i(e);i(t);i(typeof r==="function");t.lstat(e,(n,o)=>{if(n&&n.code==="ENOENT"){return r(null)}if(n&&n.code==="EPERM"&&s){return fixWinEPERM(e,t,n,r)}if(o&&o.isDirectory()){return rmdir(e,t,n,r)}t.unlink(e,n=>{if(n){if(n.code==="ENOENT"){return r(null)}if(n.code==="EPERM"){return s?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r)}if(n.code==="EISDIR"){return rmdir(e,t,n,r)}}return r(n)})})}function fixWinEPERM(e,t,r,n){i(e);i(t);i(typeof n==="function");t.chmod(e,438,o=>{if(o){n(o.code==="ENOENT"?null:r)}else{t.stat(e,(o,i)=>{if(o){n(o.code==="ENOENT"?null:r)}else if(i.isDirectory()){rmdir(e,t,r,n)}else{t.unlink(e,n)}})}})}function fixWinEPERMSync(e,t,r){let n;i(e);i(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(n.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,n){i(e);i(t);i(typeof n==="function");t.rmdir(e,o=>{if(o&&(o.code==="ENOTEMPTY"||o.code==="EEXIST"||o.code==="EPERM")){rmkids(e,t,n)}else if(o&&o.code==="ENOTDIR"){n(r)}else{n(o)}})}function rmkids(e,t,r){i(e);i(t);i(typeof r==="function");t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length;let c;if(s===0)return t.rmdir(e,r);i.forEach(n=>{rimraf(o.join(e,n),t,n=>{if(c){return}if(n)return r(c=n);if(--s===0){t.rmdir(e,r)}})})})}function rimrafSync(e,t){let r;t=t||{};defaults(t);i(e,"rimraf: missing path");i.strictEqual(typeof e,"string","rimraf: path should be a string");i(t,"rimraf: missing options");i.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&s){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return s?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){i(e);i(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR"){throw r}else if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"){rmkidsSync(e,t)}else if(n.code!=="ENOENT"){throw n}}}function rmkidsSync(e,t){i(e);i(t);t.readdirSync(e).forEach(r=>rimrafSync(o.join(e,r),t));if(s){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch{}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamedParameters:{name:"secret_name"}}],createOrUpdateSecretForRepo:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamed:["actions","createOrUpdateRepoSecret"],renamedParameters:{name:"secret_name"}}],createRegistrationToken:["POST /repos/{owner}/{repo}/actions/runners/registration-token",{},{renamed:["actions","createRegistrationTokenForRepo"]}],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveToken:["POST /repos/{owner}/{repo}/actions/runners/remove-token",{},{renamed:["actions","createRemoveTokenForRepo"]}],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamedParameters:{name:"secret_name"}}],deleteSecretFromRepo:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamed:["actions","deleteRepoSecret"],renamedParameters:{name:"secret_name"}}],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowJobLogs:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs",{},{renamed:["actions","downloadJobLogsForWorkflowRun"]}],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key",{},{renamed:["actions","getRepoPublicKey"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamedParameters:{name:"secret_name"}}],getSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}",{},{renamed:["actions","getRepoSecret"],renamedParameters:{name:"secret_name"}}],getSelfHostedRunner:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}",{},{renamed:["actions","getSelfHostedRunnerForRepo"]}],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowJob:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}",{},{renamed:["actions","getJobForWorkflowRun"]}],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listDownloadsForSelfHostedRunnerApplication:["GET /repos/{owner}/{repo}/actions/runners/downloads",{},{renamed:["actions","listRunnerApplicationsForRepo"]}],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflowRuns:["GET /repos/{owner}/{repo}/actions/runs",{},{renamed:["actions","listWorkflowRunsForRepo"]}],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSecretsForRepo:["GET /repos/{owner}/{repo}/actions/secrets",{},{renamed:["actions","listRepoSecrets"]}],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowJobLogs:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs",{},{renamed:["actions","downloadWorkflowJobLogs"]}],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs",{},{renamed:["actions","downloadWorkflowRunLogs"]}],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelfHostedRunner:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}",{},{renamed:["actions","deleteSelfHostedRunnerFromRepo"]}],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],checkStarringRepo:["GET /user/starred/{owner}/{repo}",{},{renamed:["activity","checkRepoIsStarredByAuthenticatedUser"]}],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscription:["PUT /notifications",{},{renamed:["activity","getThreadSubscriptionForAuthenticatedUser"]}],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listEventsForOrg:["GET /users/{username}/events/orgs/{org}",{},{renamed:["activity","listOrgEventsForAuthenticatedUser"]}],listEventsForUser:["GET /users/{username}/events",{},{renamed:["activity","listEventsForAuthenticatedUser"]}],listFeeds:["GET /feeds",{},{renamed:["activity","getFeeds"]}],listNotifications:["GET /notifications",{},{renamed:["activity","listNotificationsForAuthenticatedUser"]}],listNotificationsForAuthenticatedUser:["GET /notifications"],listNotificationsForRepo:["GET /repos/{owner}/{repo}/notifications",{},{renamed:["activity","listRepoNotificationsForAuthenticatedUser"]}],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForOrg:["GET /orgs/{org}/events",{},{renamed:["activity","listPublicOrgEvents"]}],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markAsRead:["PUT /notifications",{},{renamed:["activity","markNotificationsAsRead"]}],markNotificationsAsRead:["PUT /notifications"],markNotificationsAsReadForRepo:["PUT /repos/{owner}/{repo}/notifications",{},{renamed:["activity","markRepoNotificationsAsRead"]}],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepo:["PUT /user/starred/{owner}/{repo}",{},{renamed:["activity","starRepoForAuthenticatedUser"]}],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepo:["DELETE /user/starred/{owner}/{repo}",{},{renamed:["activity","unstarRepoForAuthenticatedUser"]}],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{mediaType:{previews:["machine-man"]}}],checkAccountIsAssociatedWithAny:["GET /marketplace_listing/accounts/{account_id}",{},{renamed:["apps","getSubscriptionPlanForAccount"]}],checkAccountIsAssociatedWithAnyStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}",{},{renamed:["apps","getSubscriptionPlanForAccountStubbed"]}],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens",{mediaType:{previews:["machine-man"]}}],createInstallationToken:["POST /app/installations/{installation_id}/access_tokens",{mediaType:{previews:["machine-man"]}},{renamed:["apps","createInstallationAccessToken"]}],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}",{mediaType:{previews:["machine-man"]}}],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app",{mediaType:{previews:["machine-man"]}}],getBySlug:["GET /apps/{app_slug}",{mediaType:{previews:["machine-man"]}}],getInstallation:["GET /app/installations/{installation_id}",{mediaType:{previews:["machine-man"]}}],getOrgInstallation:["GET /orgs/{org}/installation",{mediaType:{previews:["machine-man"]}}],getRepoInstallation:["GET /repos/{owner}/{repo}/installation",{mediaType:{previews:["machine-man"]}}],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation",{mediaType:{previews:["machine-man"]}}],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listAccountsUserOrOrgOnPlan:["GET /marketplace_listing/plans/{plan_id}/accounts",{},{renamed:["apps","listAccountsForPlan"]}],listAccountsUserOrOrgOnPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",{},{renamed:["apps","listAccountsForPlanStubbed"]}],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories",{mediaType:{previews:["machine-man"]}}],listInstallations:["GET /app/installations",{mediaType:{previews:["machine-man"]}}],listInstallationsForAuthenticatedUser:["GET /user/installations",{mediaType:{previews:["machine-man"]}}],listMarketplacePurchasesForAuthenticatedUser:["GET /user/marketplace_purchases",{},{renamed:["apps","listSubscriptionsForAuthenticatedUser"]}],listMarketplacePurchasesForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed",{},{renamed:["apps","listSubscriptionsForAuthenticatedUserStubbed"]}],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listRepos:["GET /installation/repositories",{mediaType:{previews:["machine-man"]}},{renamed:["apps","listReposAccessibleToInstallation"]}],listReposAccessibleToInstallation:["GET /installation/repositories",{mediaType:{previews:["machine-man"]}}],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{mediaType:{previews:["machine-man"]}}],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],revokeInstallationToken:["DELETE /installation/token",{},{renamed:["apps","revokeInstallationAccessToken"]}],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs",{mediaType:{previews:["antiope"]}}],createSuite:["POST /repos/{owner}/{repo}/check-suites",{mediaType:{previews:["antiope"]}}],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}",{mediaType:{previews:["antiope"]}}],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}",{mediaType:{previews:["antiope"]}}],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",{mediaType:{previews:["antiope"]}}],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs",{mediaType:{previews:["antiope"]}}],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",{mediaType:{previews:["antiope"]}}],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites",{mediaType:{previews:["antiope"]}}],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest",{mediaType:{previews:["antiope"]}}],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences",{mediaType:{previews:["antiope"]}}],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}",{mediaType:{previews:["antiope"]}}]},codeScanning:{getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_id}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],listConductCodes:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}},{renamed:["codesOfConduct","getAllCodesOfConduct"]}]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listPublicForUser:["GET /users/{username}/gists",{},{renamed:["gists","listForUser"]}],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"],listTemplates:["GET /gitignore/templates",{},{renamed:["gitignore","getAllTemplates"]}]},interactions:{addOrUpdateRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}},{renamed:["interactions","setRestrictionsForOrg"]}],addOrUpdateRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}},{renamed:["interactions","setRestrictionsForRepo"]}],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits",{mediaType:{previews:["sombra"]}}],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits",{mediaType:{previews:["sombra"]}}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkAssignee:["GET /repos/{owner}/{repo}/assignees/{assignee}",{},{renamed:["issues","checkUserCanBeAssigned"]}],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],listMilestonesForRepo:["GET /repos/{owner}/{repo}/milestones",{},{renamed:["issues","listMilestones"]}],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],removeLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels",{},{renamed:["issues","removeAllLabels"]}],replaceAllLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels",{},{renamed:["issues","setLabels"]}],replaceLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels",{},{renamed:["issues","replaceAllLabels"]}],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"],listCommonlyUsed:["GET /licenses",{},{renamed:["licenses","getAllCommonlyUsed"]}]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportProgress:["GET /repos/{owner}/{repo}/import",{},{renamed:["migrations","getImportStatus"]}],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{addOrUpdateMembership:["PUT /orgs/{org}/memberships/{username}",{},{renamed:["orgs","setMembershipForUser"]}],blockUser:["PUT /orgs/{org}/blocks/{username}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembership:["GET /orgs/{org}/members/{username}",{},{renamed:["orgs","checkMembershipForUser"]}],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembership:["GET /orgs/{org}/public_members/{username}",{},{renamed:["orgs","checkPublicMembershipForUser"]}],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],concealMembership:["DELETE /orgs/{org}/public_members/{username}",{},{renamed:["orgs","removePublicMembershipForAuthenticatedUser"]}],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createHook:["POST /orgs/{org}/hooks",{},{renamed:["orgs","createWebhook"]}],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteHook:["DELETE /orgs/{org}/hooks/{hook_id}",{},{renamed:["orgs","deleteWebhook"]}],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getHook:["GET /orgs/{org}/hooks/{hook_id}",{},{renamed:["orgs","getWebhook"]}],getMembership:["GET /orgs/{org}/memberships/{username}",{},{renamed:["orgs","getMembershipForUser"]}],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations",{mediaType:{previews:["machine-man"]}}],listBlockedUsers:["GET /orgs/{org}/blocks"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listHooks:["GET /orgs/{org}/hooks",{},{renamed:["orgs","listWebhooks"]}],listInstallations:["GET /orgs/{org}/installations",{mediaType:{previews:["machine-man"]}},{renamed:["orgs","listAppInstallations"]}],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMemberships:["GET /user/memberships/orgs",{},{renamed:["orgs","listMembershipsForAuthenticatedUser"]}],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingHook:["POST /orgs/{org}/hooks/{hook_id}/pings",{},{renamed:["orgs","pingWebhook"]}],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],publicizeMembership:["PUT /orgs/{org}/public_members/{username}",{},{renamed:["orgs","setPublicMembershipForAuthenticatedUser"]}],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembership:["DELETE /orgs/{org}/memberships/{username}",{},{renamed:["orgs","removeMembershipForUser"]}],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateHook:["PATCH /orgs/{org}/hooks/{hook_id}",{},{renamed:["orgs","updateWebhook"]}],updateMembership:["PATCH /user/memberships/orgs/{org}",{},{renamed:["orgs","updateMembershipForAuthenticatedUser"]}],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],reviewUserPermissionLevel:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}},{renamed:["projects","getPermissionForUser"]}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments",{},{renamed:["pulls","createReviewComment"]}],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],createReviewCommentReply:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies",{},{renamed:["pulls","createReplyForReviewComment"]}],createReviewRequest:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",{},{renamed:["pulls","requestReviewers"]}],deleteComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}",{},{renamed:["pulls","deleteReviewComment"]}],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],deleteReviewRequest:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",{},{renamed:["pulls","removeRequestedReviewers"]}],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}",{},{renamed:["pulls","getReviewComment"]}],getCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",{},{renamed:["pulls","listCommentsForReview"]}],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",{},{renamed:["pulls","listReviewComments"]}],listCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments",{},{renamed:["pulls","listReviewCommentsForRepo"]}],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviewRequests:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",{},{renamed:["pulls","listRequestedReviewers"]}],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}",{},{renamed:["pulls","updateReviewComment"]}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],delete:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{renamed:["reactions","deleteLegacy"]}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.reactions.deleteLegacy() is deprecated, see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addDeployKey:["POST /repos/{owner}/{repo}/keys",{},{renamed:["repos","createDeployKey"]}],addProtectedBranchAdminEnforcement:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",{},{renamed:["repos","setAdminBranchProtection"]}],addProtectedBranchAppRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps",renamed:["repos","addAppAccessRestrictions"]}],addProtectedBranchRequiredSignatures:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}},{renamed:["repos","createCommitSignatureProtection"]}],addProtectedBranchRequiredStatusChecksContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts",renamed:["repos","addStatusCheckContexts"]}],addProtectedBranchTeamRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams",renamed:["repos","addTeamAccessRestrictions"]}],addProtectedBranchUserRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users",renamed:["repos","addUserAccessRestrictions"]}],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createHook:["POST /repos/{owner}/{repo}/hooks",{},{renamed:["repos","createWebhook"]}],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateFile:["PUT /repos/{owner}/{repo}/contents/{path}",{},{renamed:["repos","createOrUpdateFileContents"]}],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createStatus:["POST /repos/{owner}/{repo}/statuses/{sha}",{},{renamed:["repos","createCommitStatus"]}],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDownload:["DELETE /repos/{owner}/{repo}/downloads/{download_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteHook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}",{},{renamed:["repos","deleteWebhook"]}],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disablePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}},{renamed:["repos","deletePagesSite"]}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/{archive_format}/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enablePagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}},{renamed:["repos","createPagesSite"]}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getArchiveLink:["GET /repos/{owner}/{repo}/{archive_format}/{ref}",{},{renamed:["repos","downloadArchive"]}],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContents:["GET /repos/{owner}/{repo}/contents/{path}",{},{renamed:["repos","getContent"]}],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getDownload:["GET /repos/{owner}/{repo}/downloads/{download_id}"],getHook:["GET /repos/{owner}/{repo}/hooks/{hook_id}",{},{renamed:["repos","getWebhook"]}],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getProtectedBranchAdminEnforcement:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",{},{renamed:["repos","getAdminBranchProtection"]}],getProtectedBranchPullRequestReviewEnforcement:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",{},{renamed:["repos","getPullRequestReviewProtection"]}],getProtectedBranchRequiredSignatures:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}},{renamed:["repos","getCommitSignatureProtection"]}],getProtectedBranchRequiredStatusChecks:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","getStatusChecksProtection"]}],getProtectedBranchRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions",{},{renamed:["repos","getAccessRestrictions"]}],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],list:["GET /user/repos",{},{renamed:["repos","listForAuthenticatedUser"]}],listAssetsForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/assets",{},{renamed:["repos","listReleaseAssets"]}],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitComments:["GET /repos/{owner}/{repo}/comments",{},{renamed:["repos","listCommitCommentsForRepo"]}],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listDownloads:["GET /repos/{owner}/{repo}/downloads"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listHooks:["GET /repos/{owner}/{repo}/hooks",{},{renamed:["repos","listWebhooks"]}],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listProtectedBranchRequiredStatusChecksContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{renamed:["repos","getAllStatusCheckContexts"]}],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses",{},{renamed:["repos","listCommitStatusesForRef"]}],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}},{renamed:["repos","getAllTopics"]}],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingHook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings",{},{renamed:["repos","pingWebhook"]}],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection",{},{renamed:["repos","deleteBranchProtection"]}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}",{},{renamed:["repos","deleteDeployKey"]}],removeProtectedBranchAdminEnforcement:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",{},{renamed:["repos","deleteAdminBranchProtection"]}],removeProtectedBranchAppRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps",renamed:["repos","removeAppAccessRestrictions"]}],removeProtectedBranchPullRequestReviewEnforcement:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",{},{renamed:["repos","deletePullRequestReviewProtection"]}],removeProtectedBranchRequiredSignatures:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}},{renamed:["repos","deleteCommitSignatureProtection"]}],removeProtectedBranchRequiredStatusChecks:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","removeStatusChecksProtection"]}],removeProtectedBranchRequiredStatusChecksContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts",renamed:["repos","removeStatusCheckContexts"]}],removeProtectedBranchRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions",{},{renamed:["repos","deleteAccessRestrictions"]}],removeProtectedBranchTeamRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams",renamed:["repos","removeTeamAccessRestrictions"]}],removeProtectedBranchUserRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users",renamed:["repos","removeUserAccessRestrictions"]}],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],replaceProtectedBranchAppRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps",renamed:["repos","setAppAccessRestrictions"]}],replaceProtectedBranchRequiredStatusChecksContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts",renamed:["repos","setStatusCheckContexts"]}],replaceProtectedBranchTeamRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams",renamed:["repos","setTeamAccessRestrictions"]}],replaceProtectedBranchUserRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users",renamed:["repos","setUserAccessRestrictions"]}],replaceTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}},{renamed:["repos","replaceAllTopics"]}],requestPageBuild:["POST /repos/{owner}/{repo}/pages/builds",{},{renamed:["repos","requestPagesBuild"]}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],retrieveCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile",{},{renamed:["repos","getCommunityProfileMetrics"]}],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushHook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests",{},{renamed:["repos","testPushWebhook"]}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateHook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}",{},{renamed:["repos","updateWebhook"]}],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateProtectedBranchPullRequestReviewEnforcement:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",{},{renamed:["repos","updatePullRequestReviewProtection"]}],updateProtectedBranchRequiredStatusChecks:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusChecksProtection"]}],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateMembershipInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}",{},{renamed:["teams","addOrUpdateMembershipForUserInOrg"]}],addOrUpdateProjectInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}},{renamed:["teams","addOrUpdateProjectPermissionsInOrg"]}],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",{},{renamed:["teams","addOrUpdateRepoPermissionsInOrg"]}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkManagesRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",{},{renamed:["teams","checkPermissionsForRepoInOrg"]}],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],getMembershipInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}",{},{renamed:["teams","getMembershipForUserInOrg"]}],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeMembershipInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}",{},{renamed:["teams","removeMembershipForUserInOrg"]}],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],reviewProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}},{renamed:["teams","checkPermissionsForProjectInOrg"]}],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],addEmails:["POST /user/emails",{},{renamed:["users","addEmailsForAuthenticated"]}],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowing:["GET /user/following/{username}",{},{renamed:["users","checkPersonIsFollowedByAuthenticated"]}],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKey:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticated"]}],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicKey:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticated"]}],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteEmails:["DELETE /user/emails",{},{renamed:["users","deleteEmailsForAuthenticated"]}],deleteGpgKey:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticated"]}],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicKey:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticated"]}],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKey:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticated"]}],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicKey:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticated"]}],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlocked:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticated"]}],listBlockedByAuthenticated:["GET /user/blocks"],listEmails:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticated"]}],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForAuthenticatedUser:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticated"]}],listFollowingForUser:["GET /users/{username}/following"],listGpgKeys:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticated"]}],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmails:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeys:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticated"]}],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],togglePrimaryEmailVisibility:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticated"]}],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};const n="3.17.0";function endpointsToMethods(e,t){const r={};for(const[n,o]of Object.entries(t)){for(const[t,i]of Object.entries(o)){const[o,s,c]=i;const[a,u]=o.split(/ /);const l=Object.assign({method:a,url:u},s);if(!r[n]){r[n]={}}const f=r[n];if(c){f[t]=decorate(e,n,t,l,c);continue}f[t]=e.request.defaults(l)}}return r}function decorate(e,t,r,n,o){const i=e.request.defaults(n);function withDecorations(...n){let s=i.endpoint.merge(...n);if(o.mapToData){s=Object.assign({},s,{data:s[o.mapToData],[o.mapToData]:undefined});return i(s)}if(o.renamed){const[n,i]=o.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${i}()`)}if(o.deprecated){e.log.warn(o.deprecated)}if(o.renamedParameters){const s=i.endpoint.merge(...n);for(const[n,i]of Object.entries(o.renamedParameters)){if(n in s){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${i}" instead`);if(!(i in s)){s[i]=s[n]}delete s[n]}}return i(s)}return i(...n)}return Object.assign(withDecorations,i)}function restEndpointMethods(e){return endpointsToMethods(e,r)}restEndpointMethods.VERSION=n;t.restEndpointMethods=restEndpointMethods},,function(e,t,r){const{spawn:n}=r(129);var o=r(357);const{TimeoutError:i,logger:s}=r(79);const c=r(747);class ExitError extends Error{constructor(e,t){super(e);this.code=t}}const a=10;const u=["-c","user.name=GitHub","-c","user.email=noreply@github.com"];function git(e,...t){const r=["ignore","pipe",s.isDebug()?"inherit":"pipe"];const o=t.filter(e=>![null,undefined].includes(e)&&(!s.isDebug()||e!=="--quiet"));const i=`git ${o.join(" ")}`;s.debug(`Executing git command ${i}`);return new Promise((t,s)=>{const c=n("git",u.concat(o),{cwd:e,stdio:r});const a=[];if(r[2]!=="inherit"){c.stdout.on("data",e=>a.push(e));c.stderr.on("data",e=>a.push(e))}c.on("error",()=>{s(new Error(`command failed: ${i}`))});c.on("exit",e=>{const r=Buffer.concat(a);if(e===0){t(r.toString("utf8").trim())}else{s(new ExitError(`command ${i} failed with code ${e}. Error Message: ${r}`,e))}})})}async function getVersion(){const e=await git(".","--version");const t=e.match(/(\d+\.\d+(\.\d+)?)/);return t&&t.length>1?t[1]:undefined}async function clone(e,t,r){if(!c.existsSync(t)){await git(".","clone","--quiet","--shallow-submodules","--no-tags","--branch",r,e,t)}else{s.warn(`Folder ${t} already exist. Won't clone`)}}async function fetch(e,t){await git(e,"fetch","--quiet","origin",`${t}:refs/remotes/origin/${t}`)}async function fetchUntilMergeBase(e,t,r){const n=(new Date).getTime()+r;const o=`refs/remotes/origin/${t}`;while((new Date).getTime()1){const t=await git(e,"merge-base",r[0],r[1]);r=[t].concat(r.slice(2))}return r[0]}catch(e){if(e instanceof ExitError&&e.code===1){return null}else{throw e}}}async function mergeCommits(e,t){return(await git(e,"rev-list","--parents",`${t}..HEAD`)).split(/\n/g).map(e=>e.split(/ /g).slice(1)).filter(e=>e.length>1)}async function merge(e,t,r){return await git(e,"pull","--no-rebase",t,r)}async function head(e){return await git(e,"show-ref","--head","-s","/HEAD")}async function sha(e,t){return await git(e,"show-ref","-s",`refs/remotes/origin/${t}`)}async function remoteSha(e,t){return await git(".","ls-remote",e,t)}async function rename(e,t){return await git(e,"branch","--move",t)}async function rebase(e,t){return await git(e,"rebase","--quiet","--autosquash",t)}async function push(e,t,r){return await git(e,"push","--quiet",t?"--force-with-lease":null,"origin",r)}async function doesBranchExist(e,t,r,n){o(t,"owner is not defined");o(r,"repo is not defined");o(n,"branch is not defined");try{const{status:o}=await e.repos.getBranch({owner:t,repo:r,branch:n});return o==200}catch(e){s.warn(`project github.com/${t}/${r}:${n} does not exist. It's not necessarily an error.`);return false}}async function hasPullRequest(e,t,r,n,o){return await hasForkPullRequest(e,t,r,n,o)||await hasOriginPullRequest(e,t,r,n)}async function hasForkPullRequest(e,t,r,n,i){o(t,"owner is not defined");o(r,"repo is not defined");o(n,"branch is not defined");o(i,"fromAuthor is not defined");try{const{status:o,data:c}=await e.pulls.list({owner:t,repo:r,state:"open",head:`${i}:${n}`});return o==200&&c.length>0}catch(e){s.error(`Error getting pull request list from https://api.github.com/repos/${t}/${r}/pulls?head=${i}:${n}&state=open'".`);throw e}}async function hasOriginPullRequest(e,t,r,n){o(t,"owner is not defined");o(r,"repo is not defined");o(n,"branch is not defined");try{const{status:o,data:i}=await e.pulls.list({owner:t,repo:r,state:"open",head:`${t}:${n}`});return o==200&&i.length>0}catch(e){s.error(`Error getting pull request list from https://api.github.com/repos/${t}/${r}/pulls?head=${t}:${n}&state=open'".`);throw e}}async function getRepository(e,t,r){o(e,"octokit is not defined");o(t,"owner is not defined");o(r,"repo is not defined");try{const{status:n,data:o}=await e.repos.get({owner:t,repo:r});s.debug(`getRepository info ${t}/${r}. ${n}`);s.debug(o);if(n==200){return o}return undefined}catch(e){s.warn(`${t}/${r} not found. Trying to get it by forked project list.`);return undefined}}async function getForkedProject(e,t,r,n,i=1,c=100){o(t,"owner is not defined");o(r,"repo is not defined");o(n,"wantedOwner is not defined");o(i,"page is not defined");try{const{status:o,data:a}=await e.repos.listForks({owner:t,repo:r,page:i});if(o==200){if(a&&a.length>0){const o=a.find(e=>e.owner.login===n);return o?o:await getForkedProject(e,t,r,n,++i,c)}else{return undefined}}}catch(e){s.error(`Error getting forked project list from https://api.github.com/repos/${t}/${r}/forks?per_page=${c}&page=${i}'".`);throw e}}e.exports={ExitError:ExitError,git:git,clone:clone,fetch:fetch,fetchUntilMergeBase:fetchUntilMergeBase,fetchDeepen:fetchDeepen,mergeBase:mergeBase,mergeCommits:mergeCommits,merge:merge,head:head,sha:sha,remoteSha:remoteSha,rename:rename,rebase:rebase,push:push,doesBranchExist:doesBranchExist,hasPullRequest:hasPullRequest,getForkedProject:getForkedProject,getRepository:getRepository,getVersion:getVersion}},,,,,function(e,t,r){"use strict";const n=r(622);const o=r(814);const i=r(39)();function resolveCommandAttempt(e,t){const r=process.cwd();const s=e.options.cwd!=null;if(s){try{process.chdir(e.options.cwd)}catch(e){}}let c;try{c=o.sync(e.command,{path:(e.options.env||process.env)[i],pathExt:t?n.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(c){c=n.resolve(s?e.options.cwd:"",c)}return c}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},,,,,function(e,t,r){"use strict";const n=r(87);const o=r(955);const i=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 s=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=o.sync("wmic",["os","get","Caption"]).stdout||""}catch(t){e=o.sync("powershell",["(Get-CimInstance -ClassName Win32_OperatingSystem).caption"]).stdout||""}const t=(e.match(/2008|2012|2016|2019/)||[])[0];if(t){return`Server ${t}`}}return i.get(r)};e.exports=s},,,,,,function(e,t,r){"use strict";const n=r(598);const o=r(622);const i=r(774).copy;const s=r(368).remove;const c=r(727).mkdirp;const a=r(322).pathExists;const u=r(425);function move(e,t,r,n){if(typeof r==="function"){n=r;r={}}const i=r.overwrite||r.clobber||false;u.checkPaths(e,t,"move",(r,s)=>{if(r)return n(r);const{srcStat:a}=s;u.checkParentPaths(e,a,t,"move",r=>{if(r)return n(r);c(o.dirname(t),r=>{if(r)return n(r);return doRename(e,t,i,n)})})})}function doRename(e,t,r,n){if(r){return s(t,o=>{if(o)return n(o);return rename(e,t,r,n)})}a(t,(o,i)=>{if(o)return n(o);if(i)return n(new Error("dest already exists."));return rename(e,t,r,n)})}function rename(e,t,r,o){n.rename(e,t,n=>{if(!n)return o();if(n.code!=="EXDEV")return o(n);return moveAcrossDevice(e,t,r,o)})}function moveAcrossDevice(e,t,r,n){const o={overwrite:r,errorOnExist:true};i(e,t,o,t=>{if(t)return n(t);return s(e,n)})}e.exports=move},,,function(e,t,r){const{run:n}=r(395);const{logger:o,annotationer:i}=r(79);async function archiveArtifacts(e,t,r){const n=getNodesToArchive(e,t);o.info(n.length>0?`Archiving artifacts for ${n.map(e=>e.project)}`:"No artifacts to archive");i.notice("No artifacts to archive");await uploadNodes(n,r)}function getNodesToArchive(e,t){const r=e.build["archive-artifacts"]&&e.build["archive-artifacts"].dependencies?e.build["archive-artifacts"].dependencies:"none";return r==="none"?[e].filter(e=>e.build["archive-artifacts"]&&e.build["archive-artifacts"].paths):t.filter(t=>t.build["archive-artifacts"]&&t.build["archive-artifacts"].paths&&(r==="all"||r.includes(t.project)||t.project===e.project))}async function uploadNodes(e,t){await Promise.allSettled(e.map(async e=>{o.info(`Project [${e.project}]. Uploading artifacts...`);const r=await n(e.build["archive-artifacts"],t);if(r){const t=r.artifactItems&&r.artifactItems.length>0?`Uploaded Items (${r.artifactItems.length}): ${r.artifactItems}.`:"";if(r.failedItems&&r.failedItems.length>0){o.error(`Project [${e.project}] Failed State. Artifact [${r.artifactName}]. Failed Items (${r.failedItems.length}): ${r.failedItems}. ${t}`);return Promise.reject(r)}else{o.info(`Project [${e.project}]. Artifact [${r.artifactName}]. ${t}`);return Promise.resolve(r)}}else{o.info(`Project [${e.project}]. No artifacts uploaded`);return Promise.resolve(undefined)}})).then(e=>{o.info("-------------- ARCHIVE ARTIFACTS SUMMARY --------------");const t=e.map(e=>e.value||e.reason).filter(e=>e&&e.artifactItems&&e.artifactItems.length>0);const r=t.flatMap(e=>e.artifactItems);const n=e.filter(e=>e.reason).map(e=>e.reason).filter(e=>e&&e.failedItems&&e.failedItems.length>0);const s=n.flatMap(e=>e.failedItems);o.info(`Artifacts uploaded (${t.length}): ${t.map(e=>e.artifactName)}. Files (${r.length}): ${r}`);o.info(`Artifacts failed (${n.length}): ${n.map(e=>e.artifactName)}. Files (${s.length}): ${s}`);if(t.length){i.notice(`Artifacts archiving error. Total (${r.length})`,r)}if(n.length){i.error(`Artifacts archiving error. Total (${s.length})`,s)}})}e.exports={archiveArtifacts:archiveArtifacts}},,,,,,,function(e){e.exports=addHook;function addHook(e,t,r,n){var o=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(o.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 o(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 o(e,t)})}}e.registry[r].push({hook:n,orig:o})}},,function(e,t,r){"use strict";const n=r(622);const o=r(39);e.exports=(e=>{e=Object.assign({cwd:process.cwd(),path:process.env[o()]},e);let t;let r=n.resolve(e.cwd);const i=[];while(t!==r){i.push(n.join(r,"node_modules/.bin"));t=r;r=n.resolve(r,"..")}i.push(n.dirname(process.execPath));return i.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=o({env:r});t.path=r[n];r[n]=e.exports(t);return r})},,,,,function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(598);const i=r(622);const s=r(727);const c=r(322).pathExists;function outputFile(e,t,r,n){if(typeof r==="function"){n=r;r="utf8"}const a=i.dirname(e);c(a,(i,c)=>{if(i)return n(i);if(c)return o.writeFile(e,t,r,n);s.mkdirs(a,i=>{if(i)return n(i);o.writeFile(e,t,r,n)})})}function outputFileSync(e,...t){const r=i.dirname(e);if(o.existsSync(r)){return o.writeFileSync(e,...t)}s.mkdirsSync(r);o.writeFileSync(e,...t)}e.exports={outputFile:n(outputFile),outputFileSync:outputFileSync}},,,,,,function(e,t,r){const n=r(765);const{Octokit:o}=r(889);const{ClientError:i}=r(79);const{formatDate:s}=r(375);r(63).config();function getProcessEnvVariable(e,t=true){const r=n.env[e];if(t&&(!r||!r.length)){throw new i(`environment variable ${e} not set!`)}return r}function addInputVariableToEnv(e,t,r){if(e){n.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]=e}else if(r){throw new Error(`Input variable ${t} is mandatory and it's not defined. Please add it following documentation.`)}}function addLocalExecutionVariables(e){Object.entries(e).forEach(([e,t])=>addInputVariableToEnv(t.value,e,t.mandatory))}function getDefaultRootFolder(){return`build_chain_${s(new Date)}`}function createOctokitInstance(e){return e?new o({auth:`token ${e}`,userAgent:"kiegroup/github-build-chain-action"}):new o({userAgent:"kiegroup/github-build-chain-action"})}function treatSkipProjectCheckout(e){const t=new Map;if(e&&e.length>0){e.forEach(e=>{const r=e.split("=");t.set(r[0],r[1])})}return t}e.exports={addLocalExecutionVariables:addLocalExecutionVariables,createOctokitInstance:createOctokitInstance,getProcessEnvVariable:getProcessEnvVariable,getDefaultRootFolder:getDefaultRootFolder,treatSkipProjectCheckout:treatSkipProjectCheckout}},,,,,,,,,function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(r(622));function getDownloadSpecification(e,t,r,n){const i=new Set;const s={rootDownloadLocation:n?o.join(r,e):r,directoryStructure:[],emptyFilesToCreate:[],filesToDownload:[]};for(const c of t){if(c.path.startsWith(`${e}/`)||c.path.startsWith(`${e}\\`)){const t=o.normalize(c.path);const a=o.join(r,n?t:t.replace(e,""));if(c.itemType==="file"){i.add(o.dirname(a));if(c.fileLength===0){s.emptyFilesToCreate.push(a)}else{s.filesToDownload.push({sourceLocation:c.contentLocation,targetPath:a})}}}}s.directoryStructure=Array.from(i);return s}t.getDownloadSpecification=getDownloadSpecification},,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(605);const o=r(211);const i=r(950);let s;var c;(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"})(c=t.HttpCodes||(t.HttpCodes={}));var a;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(a=t.Headers||(t.Headers={}));var u;(function(e){e["ApplicationJson"]="application/json"})(u=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=i.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const l=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const f=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const p=["OPTIONS","GET","DELETE","HEAD"];const d=10;const h=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;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=new URL(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[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,u.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[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.post(e,n,r);return this._processResponse(o,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.put(e,n,r);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,u.ApplicationJson);r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,u.ApplicationJson);let o=await this.patch(e,n,r);return this._processResponse(o,this.requestOptions)}async request(e,t,r,n){if(this._disposed){throw new Error("Client has already been disposed.")}let o=new URL(t);let i=this._prepareRequest(e,o,n);let s=this._allowRetries&&p.indexOf(e)!=-1?this._maxRetries+1:1;let a=0;let u;while(a0){const s=u.message.headers["location"];if(!s){break}let c=new URL(s);if(o.protocol=="https:"&&o.protocol!=c.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 u.readBody();if(c.hostname!==o.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}i=this._prepareRequest(e,c,n);u=await this.requestRaw(i,r);t--}if(f.indexOf(u.message.statusCode)==-1){return u}a+=1;if(a{let o=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,o)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;let i=(e,t)=>{if(!o){o=true;r(e,t)}};let s=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);i(null,t)});s.on("socket",e=>{n=e});s.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}i(new Error("Request timeout: "+e.options.path),null)});s.on("error",function(e){i(e,null)});if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){s.end()});t.pipe(s)}else{s.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const s=i.parsedUrl.protocol==="https:";i.httpModule=s?o:n;const c=s?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):c;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(i.options)})}return i}_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 o;if(this.requestOptions&&this.requestOptions.headers){o=n(this.requestOptions.headers)[t]}return e[t]||o||r}_getAgent(e){let t;let c=i.getProxyUrl(e);let a=c&&c.hostname;if(this._keepAlive&&a){t=this._proxyAgent}if(this._keepAlive&&!a){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(a){if(!s){s=r(413)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:`${c.username}:${c.password}`,host:c.hostname,port:c.port}};let n;const o=c.protocol==="https:";if(u){n=o?s.httpsOverHttps:s.httpsOverHttp}else{n=o?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new o.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=u?o.globalAgent:n.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(d,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 o=e.message.statusCode;const i={statusCode:o,result:null,headers:{}};if(o==c.NotFound){r(i)}let s;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){s=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(a)}i.result=s}i.headers=e.message.headers}catch(e){}if(o>299){let e;if(s&&s.message){e=s.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+o+")"}let t=new HttpClientError(e,o);t.result=i.result;n(t)}else{r(i)}})}}t.HttpClient=HttpClient},,,,,,,,,,,,,,,,,function(e){"use strict";function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){var t=this.name+": ";t+=this.reason||"(unknown reason)";if(!e&&this.mark){t+=" "+this.mark.toString()}return t};e.exports=YAMLException},function(e,t,r){const n=r(989);const o=r(946);const i=r(113);const s=r(112);function treatCommand(e,t={}){const r=i.treat(e);let c=n;if(!excludeTreatment(r)){if(r.match(/.*mvn .*/)){c=o}}return s.treat(c.treat(r),t.replaceExArray)}function excludeTreatment(e){return e.trim().match(/^export .*=/)||e.trim().match(/^echo .*/)}e.exports={treatCommand:treatCommand}},,,,,function(e,t,r){var n=r(49);var o=function(){};var i=function(e){return e.setHeader&&typeof e.abort==="function"};var s=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var c=function(e,t,r){if(typeof t==="function")return c(e,null,t);if(!t)t={};r=n(r||o);var a=e._writableState;var u=e._readableState;var l=t.readable||t.readable!==false&&e.readable;var f=t.writable||t.writable!==false&&e.writable;var p=false;var d=function(){if(!e.writable)h()};var h=function(){f=false;if(!l)r.call(e)};var m=function(){l=false;if(!f)r.call(e)};var g=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var w=function(t){r.call(e,t)};var y=function(){process.nextTick(b)};var b=function(){if(p)return;if(l&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"));if(f&&!(a&&(a.ended&&!a.destroyed)))return r.call(e,new Error("premature close"))};var v=function(){e.req.on("finish",h)};if(i(e)){e.on("complete",h);e.on("abort",y);if(e.req)v();else e.on("request",v)}else if(f&&!a){e.on("end",d);e.on("close",d)}if(s(e))e.on("exit",g);e.on("end",m);e.on("finish",h);if(t.error!==false)e.on("error",w);e.on("close",y);return function(){p=true;e.removeListener("complete",h);e.removeListener("abort",y);e.removeListener("request",v);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",d);e.removeListener("close",d);e.removeListener("finish",h);e.removeListener("exit",g);e.removeListener("end",m);e.removeListener("error",w);e.removeListener("close",y)}};e.exports=c},,,,,,function(e,t,r){"use strict";const n=r(622);const o=r(948);const i=r(489);const s=r(462);const c=r(389);const a=r(280);const u=process.platform==="win32";const l=/\.(?:com|exe)$/i;const f=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const p=o(()=>a.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true))||false;function detectShebang(e){e.file=i(e);const t=e.file&&c(e.file);if(t){e.args.unshift(e.file);e.command=t;return i(e)}return e.file}function parseNonShell(e){if(!u){return e}const t=detectShebang(e);const r=!l.test(t);if(e.options.forceShell||r){const r=f.test(t);e.command=n.normalize(e.command);e.command=s.command(e.command);e.args=e.args.map(e=>s.argument(e,r));const o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(p){return e}const t=[e.command].concat(e.args).join(" ");if(u){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},function(e,t,r){e.exports=rimraf;rimraf.sync=rimrafSync;var n=r(357);var o=r(622);var i=r(747);var s=undefined;try{s=r(120)}catch(e){}var c=parseInt("666",8);var a={nosort:true,silent:true};var u=0;var l=process.platform==="win32";function defaults(e){var t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(function(t){e[t]=e[t]||i[t];t=t+"Sync";e[t]=e[t]||i[t]});e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&s===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||a}function rimraf(e,t,r){if(typeof t==="function"){r=t;t={}}n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n.equal(typeof r,"function","rimraf: callback function required");n(t,"rimraf: invalid options argument provided");n.equal(typeof t,"object","rimraf: options should be object");defaults(t);var o=0;var i=null;var c=0;if(t.disableGlob||!s.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,function(r,n){if(!r)return afterGlob(null,[e]);s(e,t.glob,afterGlob)});function next(e){i=i||e;if(--c===0)r(i)}function afterGlob(e,n){if(e)return r(e);c=n.length;if(c===0)return r();n.forEach(function(e){rimraf_(e,t,function CB(r){if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&o1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&e==="**")return o;if(e==="")return"";var n="";var i=!!r.nocase;var u=false;var l=[];var p=[];var h;var m=false;var g=-1;var w=-1;var y=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var b=this;function clearStateChar(){if(h){switch(h){case"*":n+=a;i=true;break;case"?":n+=c;i=true;break;default:n+="\\"+h;break}b.debug("clearStateChar %j %j",h,n);h=false}}for(var v=0,E=e.length,T;v-1;k--){var R=p[k];var j=n.slice(0,R.reStart);var F=n.slice(R.reStart,R.reEnd-8);var x=n.slice(R.reEnd-8,R.reEnd);var $=n.slice(R.reEnd);x+=$;var D=j.split("(").length-1;var G=$;for(v=0;v=0;s--){i=e[s];if(i)break}for(s=0;s>> no match, partial?",e,f,t,p);if(f===c)return true}return false}var h;if(typeof u==="string"){if(n.nocase){h=l.toLowerCase()===u.toLowerCase()}else{h=l===u}this.debug("string match",u,l,h)}else{h=l.match(u);this.debug("pattern match",u,l,h)}if(!h)return false}if(i===c&&s===a){return true}else if(i===c){return r}else if(s===a){var m=i===c-1&&e[i]==="";return m}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},,,function(e,t,r){"use strict";var n=r(945);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},,,,,,,function(e,t,r){"use strict";var n=r(43);e.exports=new n({explicit:[r(574),r(921),r(988)]})},,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},,function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(r(747));const i=r(470);const s=r(622);const c=r(870);function getUploadSpecification(e,t,r){c.checkArtifactName(e);const n=[];if(!o.existsSync(t)){throw new Error(`Provided rootDirectory ${t} does not exist`)}if(!o.lstatSync(t).isDirectory()){throw new Error(`Provided rootDirectory ${t} is not a valid directory`)}t=s.normalize(t);t=s.resolve(t);for(let a of r){if(!o.existsSync(a)){throw new Error(`File ${a} does not exist`)}if(!o.lstatSync(a).isDirectory()){a=s.normalize(a);a=s.resolve(a);if(!a.startsWith(t)){throw new Error(`The rootDirectory: ${t} is not a parent directory of the file: ${a}`)}const r=a.replace(t,"");c.checkArtifactFilePath(r);n.push({absoluteFilePath:a,uploadFilePath:s.join(e,r)})}else{i.debug(`Removing ${a} from rawSearchResults because it is a directory`)}}return n}t.getUploadSpecification=getUploadSpecification},,,function(e,t,r){const n=r(605);const o=r(211);function requestUrl(e,t){const r=t?{headers:{Authorization:`token ${t}`}}:{};return new Promise((t,i)=>{(e.startsWith("https://")?o:n).get(e,r,e=>{if(e.statusCode<200||e.statusCode>299){i(`Status: ${e.statusCode}. ${e.statusMessage}`)}let r=[];e.on("data",e=>r.push(e));e.on("end",()=>t(Buffer.concat(r).toString()))}).on("error",e=>i(e))})}async function getUrlContent(e,t=undefined){try{return await requestUrl(e,t)}catch(t){throw new Error(`Error getting ${e}. Error: ${t}`)}}e.exports={getUrlContent:getUrlContent}},,function(e,t,r){"use strict";const n=r(598);const o=r(622);const i=r(727).mkdirs;const s=r(322).pathExists;const c=r(916).utimesMillis;const a=r(425);function copy(e,t,r,n){if(typeof r==="function"&&!n){n=r;r={}}else if(typeof r==="function"){r={filter:r}}n=n||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}a.checkPaths(e,t,"copy",(o,i)=>{if(o)return n(o);const{srcStat:s,destStat:c}=i;a.checkParentPaths(e,s,t,"copy",o=>{if(o)return n(o);if(r.filter)return handleFilter(checkParentDir,c,e,t,r,n);return checkParentDir(c,e,t,r,n)})})}function checkParentDir(e,t,r,n,c){const a=o.dirname(r);s(a,(o,s)=>{if(o)return c(o);if(s)return startCopy(e,t,r,n,c);i(a,o=>{if(o)return c(o);return startCopy(e,t,r,n,c)})})}function handleFilter(e,t,r,n,o,i){Promise.resolve(o.filter(r,n)).then(s=>{if(s)return e(t,r,n,o,i);return i()},e=>i(e))}function startCopy(e,t,r,n,o){if(n.filter)return handleFilter(getStats,e,t,r,n,o);return getStats(e,t,r,n,o)}function getStats(e,t,r,o,i){const s=o.dereference?n.stat:n.lstat;s(t,(n,s)=>{if(n)return i(n);if(s.isDirectory())return onDir(s,e,t,r,o,i);else if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return onFile(s,e,t,r,o,i);else if(s.isSymbolicLink())return onLink(e,t,r,o,i)})}function onFile(e,t,r,n,o,i){if(!t)return copyFile(e,r,n,o,i);return mayCopyFile(e,r,n,o,i)}function mayCopyFile(e,t,r,o,i){if(o.overwrite){n.unlink(r,n=>{if(n)return i(n);return copyFile(e,t,r,o,i)})}else if(o.errorOnExist){return i(new Error(`'${r}' already exists`))}else return i()}function copyFile(e,t,r,o,i){n.copyFile(t,r,n=>{if(n)return i(n);if(o.preserveTimestamps)return handleTimestampsAndMode(e.mode,t,r,i);return setDestMode(r,e.mode,i)})}function handleTimestampsAndMode(e,t,r,n){if(fileIsNotWritable(e)){return makeFileWritable(r,e,o=>{if(o)return n(o);return setDestTimestampsAndMode(e,t,r,n)})}return setDestTimestampsAndMode(e,t,r,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t,r){return setDestMode(e,t|128,r)}function setDestTimestampsAndMode(e,t,r,n){setDestTimestamps(t,r,t=>{if(t)return n(t);return setDestMode(r,e,n)})}function setDestMode(e,t,r){return n.chmod(e,t,r)}function setDestTimestamps(e,t,r){n.stat(e,(e,n)=>{if(e)return r(e);return c(t,n.atime,n.mtime,r)})}function onDir(e,t,r,n,o,i){if(!t)return mkDirAndCopy(e.mode,r,n,o,i);if(t&&!t.isDirectory()){return i(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`))}return copyDir(r,n,o,i)}function mkDirAndCopy(e,t,r,o,i){n.mkdir(r,n=>{if(n)return i(n);copyDir(t,r,o,t=>{if(t)return i(t);return setDestMode(r,e,i)})})}function copyDir(e,t,r,o){n.readdir(e,(n,i)=>{if(n)return o(n);return copyDirItems(i,e,t,r,o)})}function copyDirItems(e,t,r,n,o){const i=e.pop();if(!i)return o();return copyDirItem(e,i,t,r,n,o)}function copyDirItem(e,t,r,n,i,s){const c=o.join(r,t);const u=o.join(n,t);a.checkPaths(c,u,"copy",(t,o)=>{if(t)return s(t);const{destStat:a}=o;startCopy(a,c,u,i,t=>{if(t)return s(t);return copyDirItems(e,r,n,i,s)})})}function onLink(e,t,r,i,s){n.readlink(t,(t,c)=>{if(t)return s(t);if(i.dereference){c=o.resolve(process.cwd(),c)}if(!e){return n.symlink(c,r,s)}else{n.readlink(r,(t,u)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return n.symlink(c,r,s);return s(t)}if(i.dereference){u=o.resolve(process.cwd(),u)}if(a.isSrcSubdir(c,u)){return s(new Error(`Cannot copy '${c}' to a subdirectory of itself, '${u}'.`))}if(e.isDirectory()&&a.isSrcSubdir(u,c)){return s(new Error(`Cannot overwrite '${u}' with '${c}'.`))}return copyLink(c,r,s)})}})}function copyLink(e,t,r){n.unlink(t,o=>{if(o)return r(o);return n.symlink(e,t,r)})}e.exports=copy},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(972);const o=r(327);const i=process.platform==="win32";function getSearchPaths(e){e=e.filter(e=>!e.negate);const t={};for(const r of e){const e=i?r.searchPath.toUpperCase():r.searchPath;t[e]="candidate"}const r=[];for(const o of e){const e=i?o.searchPath.toUpperCase():o.searchPath;if(t[e]==="included"){continue}let s=false;let c=e;let a=n.dirname(c);while(a!==c){if(t[a]){s=true;break}c=a;a=n.dirname(c)}if(!s){r.push(o.searchPath);t[e]="included"}}return r}t.getSearchPaths=getSearchPaths;function match(e,t){let r=o.MatchKind.None;for(const n of e){if(n.negate){r&=~n.match(t)}else{r|=n.match(t)}}return r}t.match=match;function partialMatch(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}t.partialMatch=partialMatch},function(e,t,r){var n=r(747);var o=r(250);var i=r(466);var s=r(608);var c=r(669);var a;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){a=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{a="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,a,{get:function(){return t}})}var l=noop;if(c.debuglog)l=c.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))l=function(){var e=c.format.apply(c,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[a]){var f=global[a]||[];publishQueue(n,f);n.close=function(e){function close(t,r){return e.call(n,t,function(e){if(!e){retry()}if(typeof r==="function")r.apply(this,arguments)})}Object.defineProperty(close,u,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);retry()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){l(n[a]);r(357).equal(n[a].length,0)})}}if(!global[a]){publishQueue(global,n[a])}e.exports=patch(s(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){o(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n){return t(e,r,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,o){if(typeof n==="function")o=n,n=null;return go$writeFile(e,t,n,o);function go$writeFile(e,t,n,o){return r(e,t,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,o]]);else{if(typeof o==="function")o.apply(this,arguments);retry()}})}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,o){if(typeof r==="function")o=r,r=null;return go$appendFile(e,t,r,o);function go$appendFile(e,t,r,o){return n(e,t,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,o]]);else{if(typeof o==="function")o.apply(this,arguments);retry()}})}}var s=e.readdir;e.readdir=readdir;function readdir(e,t,r){var n=[e];if(typeof t!=="function"){n.push(t)}else{r=t}n.push(go$readdir$cb);return go$readdir(n);function go$readdir$cb(e,t){if(t&&t.sort)t.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[n]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}}}function go$readdir(t){return s.apply(e,t)}if(process.version.substr(0,4)==="v0.8"){var c=i(e);ReadStream=c.ReadStream;WriteStream=c.WriteStream}var a=e.ReadStream;if(a){ReadStream.prototype=Object.create(a.prototype);ReadStream.prototype.open=ReadStream$open}var u=e.WriteStream;if(u){WriteStream.prototype=Object.create(u.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var l=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return l},set:function(e){l=e},enumerable:true,configurable:true});var f=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return a.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}})}function WriteStream(e,t){if(this instanceof WriteStream)return u.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}})}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var p=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n){return p(e,t,r,function(o,i){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}return e}function enqueue(e){l("ENQUEUE",e[0].name,e[1]);n[a].push(e)}function retry(){var e=n[a].shift();if(e){l("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(470);function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;n.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;n.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;n.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},,,,function(e){e.exports=require("http")},,,function(e){"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}},,,function(e,t,r){"use strict";var n=r(43);e.exports=new n({include:[r(23)]})},,,function(e){e.exports=require("events")},function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(598);const i=r(622);const s=r(727);const c=r(368);const a=n(function emptyDir(e,t){t=t||function(){};o.readdir(e,(r,n)=>{if(r)return s.mkdirs(e,t);n=n.map(t=>i.join(e,t));deleteItem();function deleteItem(){const e=n.pop();if(!e)return t();c.remove(e,e=>{if(e)return t(e);deleteItem()})}})});function emptyDirSync(e){let t;try{t=o.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach(t=>{t=i.join(e,t);c.removeSync(t)})}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:a,emptydir:a}},,,,function(e){e.exports=require("constants")},,function(e){"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,o,i,s,c;var a=r.indexOf(e);var u=r.indexOf(t,a+1);var l=a;if(a>=0&&u>0){n=[];i=r.length;while(l>=0&&!c){if(l==a){n.push(l);a=r.indexOf(e,l+1)}else if(n.length==1){c=[n.pop(),u]}else{o=n.pop();if(o=0?a:u}if(n.length){c=[i,s]}}return c}},function(e){e.exports=require("path")},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},,,,,function(e,t,r){"use strict";const{stringify:n}=r(356);const{outputFileSync:o}=r(517);function outputJsonSync(e,t,r){const i=n(t,r);o(e,i,r)}e.exports=outputJsonSync},function(e,t,r){"use strict";var n=r(945);function resolveJavascriptRegExp(e){if(e===null)return false;if(e.length===0)return false;var t=e,r=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(r)n=r[1];if(n.length>3)return false;if(t[t.length-n.length-1]!=="/")return false}return true}function constructJavascriptRegExp(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(r)n=r[1];t=t.slice(1,t.length-n.length-1)}return new RegExp(t,n)}function representJavascriptRegExp(e){var t="/"+e.source+"/";if(e.global)t+="g";if(e.multiline)t+="m";if(e.ignoreCase)t+="i";return t}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}e.exports=new n("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},function(e){e.exports=require("perf_hooks")},function(e){e.exports=require("net")},,function(e,t,r){"use strict";var n=r(945);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},function(e,t,r){var n=r(293);var o=Object.create(null);var i=r(49);e.exports=n(inflight);function inflight(e,t){if(o[e]){o[e].push(t);return null}else{o[e]=[t];return makeres(e)}}function makeres(e){return i(function RES(){var t=o[e];var r=t.length;var n=slice(arguments);try{for(var i=0;ir){t.splice(0,r);process.nextTick(function(){RES.apply(null,n)})}else{delete o[e]}}})}function slice(e){var t=e.length;var r=[];for(var n=0;n{e.push(...parentChainFromNode(t).filter(t=>t&&!e.find(e=>e.project===t.project)).map(e=>{return{...e}}));return e},[]).filter(e=>e);t.push(e);return t}function childChainFromNode(e,t=[]){const r=t.findIndex(t=>t.project===e.project);if(r>-1){t.splice(r,1)}t.push(e);e.children.forEach(e=>childChainFromNode(e,t));return t}function jsonStringFunction(e,t,r){{return["parents","children"].includes(e)?t.map(e=>{if(!r.includes(e.project)){r.push(e.project);return e}return{project:e.project,warning:"rest of the node information removed to avoid circular dependency problem. The node information is already defined in the json."}}):t}}e.exports={parentChainFromNode:parentChainFromNode,childChainFromNode:childChainFromNode,jsonStringFunction:jsonStringFunction}},,,,function(e,t,r){"use strict";e.exports={copySync:r(110)}},,,,,function(e){function getNodeTriggeringJob(e,t){return t.find(t=>t.project===e.config.github.inputs.startingProject||t.project===e.config.github.repository||t.project===e.config.github.project)}e.exports={getNodeTriggeringJob:getNodeTriggeringJob}},,function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise(function(n,o){r=e[t](r),settle(n,o,r.done,r.value)})}}function settle(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(747));const c=i(r(761));const a=r(669);const u=a.promisify(s.stat);function createGZipFileOnDisk(e,t){return n(this,void 0,void 0,function*(){return new Promise((r,o)=>{const i=s.createReadStream(e);const a=c.createGzip();const l=s.createWriteStream(t);i.pipe(a).pipe(l);l.on("finish",()=>n(this,void 0,void 0,function*(){const e=(yield u(t)).size;r(e)}));l.on("error",e=>{console.log(e);o})})})}t.createGZipFileOnDisk=createGZipFileOnDisk;function createGZipFileInBuffer(e){return n(this,void 0,void 0,function*(){return new Promise(t=>n(this,void 0,void 0,function*(){var r,n;const i=s.createReadStream(e);const a=c.createGzip();i.pipe(a);const u=[];try{for(var l=o(a),f;f=yield l.next(),!f.done;){const e=f.value;u.push(e)}}catch(e){r={error:e}}finally{try{if(f&&!f.done&&(n=l.return))yield n.call(l)}finally{if(r)throw r.error}}t(Buffer.concat(u))}))})}t.createGZipFileInBuffer=createGZipFileInBuffer},,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){r=new URL(n)}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},,,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")}},,function(e,t,r){const{logger:n}=r(79);const{getCommand:o}=r(11);const i=(e,t)=>{return Object.values(e).reduce((e,r)=>{if(r){(e[r[t]]=e[r[t]]||[]).push(r)}return e},{})};function printCheckoutInformation(e){n.debug("summary.js checkoutInfo",e);if(e&&Object.keys(e).length){n.info("----------------------------------------------");Object.entries(e).forEach(([e,t])=>n.info(t?`${t.group}/${t.project}:${t.branch}.${t.merge?` It has been merged with ${t.targetGroup}/${t.project}:${t.targetBranch}`:""}`:`${e}: No checkout information`));n.info("----------------------------------------------");Object.entries(i(e,"branch")).forEach(([e,t])=>{n.info(`Projects taken from branch "${e}":${t.map(e=>`\n ${e.group}/${e.project}${e.merge?`. Merged with ${e.targetGroup}/${e.project}:${e.targetBranch}`:""}`)}`)});n.info("----------------------------------------------")}}function printExecutionPlanNode(e,t){n.emptyLine();n.info(`[${e.project}]`);n.info(`Level Type: [${t}].`);if(e.build&&e.build.skip){n.info(`No command will be executed (the project is skipped).`)}else{if(e.build["build-command"].before&&o(e.build["build-command"].before,t)){n.info(o(e.build["build-command"].before,t))}n.info(o(e.build["build-command"],t));if(e.build["build-command"].after&&o(e.build["build-command"].after,t)){n.info(o(e.build["build-command"].after,t))}}}function printExecutionPlan(e,t){if(e&&Object.keys(e).length){n.info("----------------------------------------------");n.info(`[${Object.keys(e).length}] projects will be executed`);const r=e.findIndex(e=>e.project===t);if(r<0){throw new Error(`The chain ${e.map(e=>e.project)} does not contain the project triggering the job ${t}`)}Object.entries(e).forEach(([e,t])=>printExecutionPlanNode(t,ee.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const o=e;for(const i of r){e=o+i;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=u.dirname(e);const n=u.basename(e).toUpperCase();for(const o of yield t.readdir(r)){if(n===o.toUpperCase()){e=u.join(r,o);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},,function(e,t,r){const{ReadYamlException:n}=r(844);const o=r(414);function read(e){try{return o.safeLoad(e)}catch(e){const t=`error reading yaml file content. Error: ${e.message}`;console.error(t);throw new n(t)}}e.exports={read:read}},,function(e,t){"use strict";t.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]==="function")e.apply(this,t);else{return new Promise((r,n)=>{e.apply(this,t.concat([(e,t)=>e?n(e):r(t)]))})}},"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty(function(...t){const r=t[t.length-1];if(typeof r!=="function")return e.apply(this,t);else e.apply(this,t.slice(0,-1)).then(e=>r(null,e),r)},"name",{value:e.name})}},,,,,function(e){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var o=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||o)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},,,,function(e,t,r){"use strict";var n=r(740);var o=r(556);var i=r(910);var s=r(723);var c=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var u=9;var l=10;var f=13;var p=32;var d=33;var h=34;var m=35;var g=37;var w=38;var y=39;var b=42;var v=44;var E=45;var T=58;var S=61;var _=62;var O=63;var A=64;var P=91;var C=93;var k=96;var R=123;var j=124;var F=125;var x={};x[0]="\\0";x[7]="\\a";x[8]="\\b";x[9]="\\t";x[10]="\\n";x[11]="\\v";x[12]="\\f";x[13]="\\r";x[27]="\\e";x[34]='\\"';x[92]="\\\\";x[133]="\\N";x[160]="\\_";x[8232]="\\L";x[8233]="\\P";var $=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(e,t){var r,n,o,i,s,c,u;if(t===null)return{};r={};n=Object.keys(t);for(o=0,i=n.length;o0?e.charCodeAt(i-1):null;d=d&&isPlainSafe(s,c)}}else{for(i=0;in&&e[p+1]!==" ";p=i}}else if(!isPrintable(s)){return I}c=i>0?e.charCodeAt(i-1):null;d=d&&isPlainSafe(s,c)}u=u||f&&(i-p-1>n&&e[p+1]!==" ")}if(!a&&!u){return d&&!o(e)?D:G}if(r>9&&needIndentIndicator(e)){return I}return u?L:U}function writeScalar(e,t,r,n){e.dump=function(){if(t.length===0){return"''"}if(!e.noCompatMode&&$.indexOf(t)!==-1){return"'"+t+"'"}var i=e.indent*Math.max(1,r);var s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var c=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,c,e.indent,s,testAmbiguity)){case D:return t;case G:return"'"+t.replace(/'/g,"''")+"'";case U:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,i));case L:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,s),i));case I:return'"'+escapeString(t,s)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var o=n&&(e[e.length-2]==="\n"||e==="\n");var i=o?"+":n?"":"-";return r+i+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var o=e[0]==="\n"||e[0]===" ";var i;var s;while(s=r.exec(e)){var c=s[1],a=s[2];i=a[0]===" ";n+=c+(!o&&!i&&a!==""?"\n":"")+foldLine(a,t);o=i}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var o=0,i,s=0,c=0;var a="";while(n=r.exec(e)){c=n.index;if(c-o>t){i=s>o?s:c;a+="\n"+e.slice(o,i);o=i+1}s=c}a+="\n";if(e.length-o>t&&s>o){a+=e.slice(o,s)+"\n"+e.slice(s+1)}else{a+=e.slice(o)}return a.slice(1)}function escapeString(e){var t="";var r,n;var o;for(var i=0;i=55296&&r<=56319){n=e.charCodeAt(i+1);if(n>=56320&&n<=57343){t+=encodeHex((r-55296)*1024+n-56320+65536);i++;continue}}o=x[r];t+=!o&&isPrintable(r)?e[i]:o||encodeHex(r)}return t}function writeFlowSequence(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i1024)l+="? ";l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,u,false,false)){continue}l+=e.dump;n+=l}e.tag=o;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var i="",s=e.tag,c=Object.keys(r),a,u,f,p,d,h;if(e.sortKeys===true){c.sort()}else if(typeof e.sortKeys==="function"){c.sort(e.sortKeys)}else if(e.sortKeys){throw new o("sortKeys must be a boolean or a function")}for(a=0,u=c.length;a1024;if(d){if(e.dump&&l===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(d){h+=generateNextLine(e,t)}if(!writeNode(e,t+1,p,true,d)){continue}if(e.dump&&l===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;i+=h}e.tag=s;e.dump=i||"{}"}function detectType(e,t,r){var n,i,s,u,l,f;i=r?e.explicitTypes:e.implicitTypes;for(s=0,u=i.length;s tag resolver accepts not "'+f+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,i,s){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var a=c.call(e.dump);if(n){n=e.flowLevel<0||e.flowLevel>t}var u=a==="[object Object]"||a==="[object Array]",l,f;if(u){l=e.duplicates.indexOf(r);f=l!==-1}if(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0){i=false}if(f&&e.usedDuplicates[l]){e.dump="*ref_"+l}else{if(u&&f&&!e.usedDuplicates[l]){e.usedDuplicates[l]=true}if(a==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,i);if(f){e.dump="&ref_"+l+e.dump}}else{writeFlowMapping(e,t,e.dump);if(f){e.dump="&ref_"+l+" "+e.dump}}}else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;if(n&&e.dump.length!==0){writeBlockSequence(e,p,e.dump,i);if(f){e.dump="&ref_"+l+e.dump}}else{writeFlowSequence(e,p,e.dump);if(f){e.dump="&ref_"+l+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,s)}}else{if(e.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){e.dump="!<"+e.tag+"> "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],n=[],o,i;inspectNode(e,r,n);for(o=0,i=n.length;o-1){const e=n.substring(0,o);r(e);n=n.substring(o+c.EOL.length);o=n.indexOf(c.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let o=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(o&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){o=true;n+='"'}else{o=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return s(this,void 0,void 0,function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield f.which(this.toolPath,true);return new Promise((e,t)=>s(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+c.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});if(this.options.cwd&&!(yield p.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const o=this._getSpawnFileName();const i=u.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));let s="";if(i.stdout){i.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}s=this._processLineBuffer(e,s,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}let a="";if(i.stderr){i.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}a=this._processLineBuffer(e,a,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}i.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});i.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});i.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(s.length>0){this.emit("stdline",s)}if(a.length>0){this.emit("errline",a)}i.removeAllListeners();if(r){t(r)}else{e(n)}});if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.stdin.end(this.options.input)}}))})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let o="";function append(e){if(n&&e!=='"'){o+="\\"}o+=e;n=false}for(let i=0;i0){t.push(o);o=""}continue}append(s)}if(o.length>0){t.push(o.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=d.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},,,function(e,t,r){try{var n=r(669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(315)}},,,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},,,function(e,t,r){"use strict";const{stringify:n}=r(356);const{outputFile:o}=r(517);async function outputJson(e,t,r={}){const i=n(t,r);await o(e,i,r)}e.exports=outputJson},,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}))})},,,,function(e,t,r){const{logger:n}=r(79);const{prepareEnv:o,createGithubInformationObject:i,getEvent:s}=r(8);const{start:c}=r(785);const{createCommonConfig:a}=r(981);async function execute(e,t,r,o,s,u){const l=i(o,r);const f=await a(l,s,r);const p={token:e,octokit:t,config:f};n.debug("build-chain-pull-request.js. githubInformation",l);n.debug("build-chain-pull-request.js. config",f);await c(p,u)}async function executeFromEvent(e,t,r,n){await execute(e,t,r,n,undefined,{isArchiveArtifacts:true})}async function executeLocally(e,t,r,i,c,a={}){n.info(`Executing pull request flow for ${c} in ${i}`);a.isArchiveArtifacts=false;const u=await s(t,c);o(r,c,u);await execute(e,t,r,u,i,a)}e.exports={executeLocally:executeLocally,executeFromEvent:executeFromEvent}},,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(43);e.exports=new n({include:[r(611)],implicit:[r(841),r(633)],explicit:[r(913),r(842),r(947),r(100)]})},,,,function(e,t,r){"use strict";const n=r(676).fromPromise;const{makeDir:o,makeDirSync:i}=r(54);const s=n(o);e.exports={mkdirs:s,mkdirsSync:i,mkdirp:s,mkdirpSync:i,ensureDir:s,ensureDirSync:i}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},,,function(e){e.exports={name:"@kie/build-chain-action",version:"2.3.26",description:"Library to execute commands based on github projects dependencies.",main:"dist/build-chain-cli.js",author:"Enrique Mingorance Cano ",license:"SEE LICENSE IN LICENSE",private:false,bin:{"build-chain-action":"./bin/build-chain-cli.js"},scripts:{test:"jest",locktt:"locktt",lint:"eslint .",prettier:"prettier -l src/** test/**/*.js","prettier-write":"prettier --write .","lint-final":"npm run prettier && npm run lint",prepublish:"npm run lint && npm run test","ncc-build":"ncc build --minify bin/build-chain-event.js"},"git-pre-hooks":{"pre-commit":"npm run lint && npm run prettier && npm run ncc-build && git add dist/index.js","pre-push":"npm ci"},dependencies:{"@actions/artifact":"^0.3.5","@actions/core":"^1.6.0","@actions/exec":"^1.1.0","@actions/glob":"^0.1.0","@kie/build-chain-configuration-reader":"^2.2.3","@octokit/rest":"^17.6.0",argparse:"^2.0.1",dotenv:"^8.2.0","fs-extra":"^9.0.0","js-yaml":"^3.14.0",tmp:"^0.2.1"},devDependencies:{"@zeit/ncc":"^0.22.3",eslint:"^7.10.0","eslint-config-google":"^0.14.0","eslint-config-prettier":"^6.11.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.22.0","eslint-plugin-jest":"^23.19.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","git-pre-hooks":"^1.2.1",jest:"^25.5.1","mock-spawn":"^0.2.6",prettier:"^2.0.5"},jest:{testEnvironment:"node",modulePathIgnorePatterns:["locally_execution/"]},prettier:{trailingComma:"none",arrowParens:"avoid"},engines:{node:">= 12.18.0"}}},,,,,,,,,function(e){"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,n,o,i;if(t){i=Object.keys(t);for(r=0,n=i.length;r{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)});const o=(t=n.result)===null||t===void 0?void 0:t.value;if(!o){throw new Error("Response json body do not have ID Token field")}return o})}static getIDToken(e){return n(this,void 0,void 0,function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}s.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);s.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}})}}t.OidcClient=OidcClient},,,,,function(e){e.exports=require("fs")},,,,,,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 o=r(392);var i=r(588);var s=_interopDefault(r(454));var c=r(463);const a="5.4.9";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(i.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let n;const o=e.request&&e.request.fetch||s;return o(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(o=>{n=o.url;r=o.status;for(const e of o.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new c.RequestError(o.statusText,r,{headers:t,request:e})}if(r===304){throw new c.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return o.text().then(n=>{const o=new c.RequestError(n,r,{headers:t,request:e});try{let e=JSON.parse(o.message);Object.assign(o,e);let t=e.errors;o.message=o.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw o})}const i=o.headers.get("content-type");if(/application\/json/.test(i)){return o.json()}if(!i||/^text\/|charset=utf-8$/.test(i)){return o.text()}return getBufferResponse(o)}).then(e=>{return{status:r,url:n,headers:t,data:e}}).catch(r=>{if(r instanceof c.RequestError){throw r}throw new c.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 o=(e,t)=>{return fetchWrapper(r.parse(r.merge(e,t)))};Object.assign(o,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(o,n)};return Object.assign(n,{endpoint:r,defaults:withDefaults.bind(null,r)})}const u=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${a} ${o.getUserAgent()}`}});t.request=u},function(e,t,r){const{checkoutDefinitionTree:n,getPlaceHolders:o}=r(330);const{executeBuild:i}=r(11);const{getTreeForProject:s}=r(352);const{printCheckoutInformation:c}=r(656);const{logger:a}=r(79);const u=r(470);const{archiveArtifacts:l}=r(503);const{execute:f}=r(99);const{execute:p}=r(153);async function start(e,t={isArchiveArtifacts:true,skipExecution:false}){a.debug("single-flow.js options",t);const r={urlPlaceHolders:await o(e,e.config.github.inputs.definitionFile),token:e.token};a.debug("single-flow.js readerOptions",r);if(!t.skipExecution){await f(e.config.github.inputs.definitionFile,r)}u.startGroup(`[Single Flow] Checking out ${e.config.github.groupProject} and its dependencies`);const d=e.config.github.inputs.startingProject?e.config.github.inputs.startingProject:e.config.github.repository;a.debug("single-flow.js projectTriggeringJob",d);const h=await s(e.config.github.inputs.definitionFile,d,r);a.debug("single-flow.js definitionTree",h);const m=[h];a.info(`Single flow for project ${e.config.github.inputs.startingProject}. Nodes: ${m.map(e=>"\n"+e.project)}`);const g=await n(e,m,"pr",t);u.endGroup();if(!t.skipExecution){u.startGroup(`[Single Flow] Checkout Summary...`);c(g);u.endGroup();const n=await i(e.config.rootFolder,m,d,t).then(()=>true).catch(e=>e);if(t.isArchiveArtifacts){u.startGroup(`[Single Flow] Archiving artifacts...`);await l(m.find(e=>e.project===d),m,n===true?["success","always"]:["failure","always"]);u.endGroup()}else{a.info("Archive artifact won't be executed")}await p(e.config.github.inputs.definitionFile,n,r);if(n!==true){a.error(n);throw new Error(`Command executions have failed, please review latest execution ${n}`)}}else{a.info("Execution has been skipped.")}}e.exports={start:start}},,,,,,,function(e){e.exports=require("zlib")},,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)}},,function(e){e.exports=require("process")},,,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}},,,function(e,t,r){const{logger:n}=r(79);const{prepareEnv:o,createGithubInformationObject:i,getEvent:s}=r(8);const{start:c}=r(137);const{createCommonConfig:a}=r(981);async function execute(e,t,r,o,s,u){const l=i(o,r);const f=await a(l,s,r);const p={token:e,octokit:t,config:f};n.debug("build-chain-pull-full-downstream.js. githubInformation",l);n.debug("build-chain-pull-full-downstream.js. config",f);await c(p,u)}async function executeFromEvent(e,t,r,n){await execute(e,t,r,n,undefined,{isArchiveArtifacts:true})}async function executeLocally(e,t,r,i,c,a={}){n.info(`Executing pull request flow for ${c} in ${i}`);a.isArchiveArtifacts=false;const u=await s(t,c);o(r,c,u);await execute(e,t,r,u,i,a)}e.exports={executeLocally:executeLocally,executeFromEvent:executeFromEvent}},,,function(e,t,r){"use strict";const n=r(676).fromCallback;e.exports={copy:n(r(595))}},,,,,,,,,,,function(e,t,r){const{checkoutDefinitionTree:n,getPlaceHolders:o}=r(330);const{executeBuild:i}=r(11);const{getTreeForProject:s,parentChainFromNode:c}=r(352);const{printCheckoutInformation:a,printExecutionPlan:u}=r(656);const{logger:l}=r(79);const f=r(470);const{archiveArtifacts:p}=r(503);const{execute:d}=r(99);const{execute:h}=r(153);async function start(e,t={skipProjectCheckout:new Map,isArchiveArtifacts:true,skipCheckout:false,skipExecution:false}){l.debug("pull-request-flow.js options",t);const r={urlPlaceHolders:await o(e,e.config.github.inputs.definitionFile),token:e.token};l.debug("pull-request-flow.js readerOptions",r);if(!t.skipExecution){await d(e.config.github.inputs.definitionFile,r)}const m=e.config.github.inputs.startingProject?e.config.github.inputs.startingProject:e.config.github.repository;l.debug("pull-request-flow.js projectTriggeringJob",m);const g=await s(e.config.github.inputs.definitionFile,m,r);l.debug("pull-request-flow.js definitionTree",g);const w=await c(g);l.debug("pull-request-flow.js nodeChain",w);if(!t.skipExecution){f.startGroup(`[Pull Request Flow] Execution Plan...`);u(w,m);f.endGroup()}f.startGroup(`[Pull Request Flow] Checking out ${e.config.github.groupProject} and its dependencies`);l.info(`Tree for project ${m}. Dependencies: ${w.map(e=>"\n"+e.project)}`);const y=await n(e,w,"pr",t);f.endGroup();f.startGroup(`[Pull Request Flow] Checkout Summary...`);a(y);f.endGroup();if(!t.skipExecution){const n=await i(e.config.rootFolder,w,m,t).then(()=>true).catch(e=>e);if(t.isArchiveArtifacts){f.startGroup(`[Pull Request Flow] Archiving artifacts...`);await p(w.find(e=>e.project===m),w,n===true?["success","always"]:["failure","always"]);f.endGroup()}else{l.info("Archive artifact won't be executed")}await h(e.config.github.inputs.definitionFile,n,r);if(n!==true){l.error(n);throw new Error(`Command executions have failed, please review latest execution ${n}`)}}else{l.info("Execution has been skipped.")}}e.exports={start:start}},,function(e){e.exports={warn:"warn",error:"error",ignore:"ignore"}},,,,,,,function(e){e.exports=require("stream")},,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},,,function(e,t,r){const n=r(747);const{getUrlContent:o}=r(593);const{treatUrl:i,treatMapping:s}=r(824);const{validateDefinition:c,validateDependencies:a}=r(127);const{read:u}=r(674);async function readDefinitionFile(e,t={urlPlaceHolders:{},token:undefined}){return e.startsWith("http")?readDefinitionFileFromUrl(e,t):readDefinitionFileFromFile(e,t.urlPlaceHolders)}async function readDefinitionFileFromFile(e,t={urlPlaceHolders:{},token:undefined}){const r=n.readFileSync(e,"utf8");return loadYaml(u(r),e.substring(0,e.lastIndexOf("/")),r,t)}async function readDefinitionFileFromUrl(e,t={urlPlaceHolders:{},token:undefined}){const r=i(e,t.urlPlaceHolders);return loadYaml(u(await o(r,t.token)),"./",e,t)}async function loadYaml(e,t,r,n={urlPlaceHolders:{},token:undefined}){c(e);e.dependencies=await loadDependencies(e.dependencies,t,r,n);if(e.dependencies){e.dependencies.filter(e=>e.mapping).map(e=>e.mapping).forEach(e=>s(e))}return e}async function loadDependencies(e,t,r,s={urlPlaceHolders:{},token:undefined}){let c=e;if(e){if(r.startsWith("http")&&!Array.isArray(e)&&!e.startsWith("http")){const t=i(r,s.urlPlaceHolders);c=`${t.substring(0,t.lastIndexOf("/"))}/${e}`;const a=await o(c,s.token);n.writeFileSync(e,a)}if(!Array.isArray(e)){const r=e.startsWith("http")?i(e,s.urlPlaceHolders):`${t}/${e}`;const l=e.startsWith("http")?await o(r,s.token):n.readFileSync(r,"utf8");const f=u(l);a(f);return(await loadDependencies(f.extends,r.substring(0,r.lastIndexOf("/")),c,s)).concat(f.dependencies)}else{return e}}else{return[]}}e.exports={readDefinitionFile:readDefinitionFile}},,,,,,,,,,function(e,t,r){"use strict";var n=r(945);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},,,,function(e,t,r){var n=r(747);var o;if(process.platform==="win32"||global.TESTING_WINDOWS){o=r(818)}else{o=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)}})})}o(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 o.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},function(e,t,r){e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var o=r(622);var i=n?";":":";var s=r(813);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||i;var o=t.path||process.env.PATH||"";var s=[""];o=o.split(r);var c="";if(n){o.unshift(process.cwd());c=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";s=c.split(r);if(e.indexOf(".")!==-1&&s[0]!=="")s.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))o=[""];return{env:o,ext:s,extExe:c}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var i=n.env;var c=n.ext;var a=n.extExe;var u=[];(function F(n,l){if(n===l){if(t.all&&u.length)return r(null,u);else return r(getNotFoundError(e))}var f=i[n];if(f.charAt(0)==='"'&&f.slice(-1)==='"')f=f.slice(1,-1);var p=o.join(f,e);if(!f&&/^\.[\\\/]/.test(e)){p=e.slice(0,2)+p}(function E(e,o){if(e===o)return F(n+1,l);var i=c[e];s(p+i,{pathExt:a},function(n,s){if(!n&&s){if(t.all)u.push(p+i);else return r(null,p+i)}return E(e+1,o)})})(0,c.length)})(0,i.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var i=r.ext;var c=r.extExe;var a=[];for(var u=0,l=n.length;uo.normalize(e).split(o.sep)).reduce((e,t)=>{r=Math.min(r,t.length);e.push(t);return e},[]);if(e[0].startsWith(o.sep)){t.push(o.sep)}let i=0;function isPathTheSame(){const e=n[0][i];for(let t=1;te.toLowerCase()).find(t=>t===e.toLowerCase())){u.info(`Uploads are case insensitive: ${e} was detected that it will be overwritten by another file with the same path`)}}}return r}function getRootDirectory(e,t){const r=e.getSearchPaths();if(r.length>1){u.info(`Multiple search paths detected. Calculating the least common ancestor of all paths`);const e=getMultiPathLCA(r);u.info(`The least common ancestor is ${e}. This will be the root directory of the artifact`);return e}return t.length===1&&r[0]===t[0]?s(t[0]):r[0]}function getDefaultGlobOptions(){return{followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true}}e.exports={findFilesToUpload:findFilesToUpload}},,,,,function(module,__unusedexports,__webpack_require__){const{logger:logger}=__webpack_require__(979);function executeUrlExpressions(url){let result=url;const expression=/%{([^%]+)}/g;let match;while(match=expression.exec(url)){logger.info(`Expression found in URL ${result}.`);logger.info(`Expression: ${match[1]}.`);try{const expressionEvalResult=eval(match[1]);logger.info(`Expression Result: ${expressionEvalResult}.`);result=result.replace(`%{${match[1]}}`,expressionEvalResult);logger.emptyLine()}catch(e){logger.error(`Error evaluating expression \`${match[1]}\` for url: \`${result}\``,e);throw e}}return result}function treatUrl(e,t){let r=e;if(t){Object.entries(t).forEach(([e,t])=>r=r.replace(new RegExp(`\\$\\{${e}(:[^}]+)?}`,"gi"),t))}return executeUrlExpressions(r)}function treatMapping(e){if(e){treatMappingDependencies(e.dependencies);treatMappingDependencies(e.dependant)}}function treatMappingDependencies(mappingDependencies){Object.values(mappingDependencies||[]).forEach(mappingElement=>mappingElement.filter(e=>e.targetExpression).forEach(mapping=>{try{mapping.target=eval(mapping.targetExpression)}catch(e){logger.error(`Error evaluating expression \`${mapping.targetExpression}\` for source: \`${mapping.source}\``,e);mapping.target=undefined}}))}module.exports={treatUrl:treatUrl,treatMapping:treatMapping,executeUrlExpressions:executeUrlExpressions}},,,,function(e,t,r){const n=r(226);const o=r(622);function copyNodeFolder(e,t,r){if(r){const i=(typeof r==="string"?[r]:r).map(r=>{const i=o.join(e,r);try{n.copySync(t,i)}catch(e){throw new Error(`Error copying project folder from ${t} to ${i}. Message: ${e}`)}return{original:r,to:i}});return i.map(e=>{const r=o.join(t,e.original);moveFolder(e.to,r);return r})}return undefined}function moveFolder(e,t){try{n.moveSync(e,t)}catch(r){throw new Error(`Error moving project folder from ${e} to ${t}. Message: ${r}`)}}e.exports={copyNodeFolder:copyNodeFolder}},,,,,,,function(e){e.exports=require("url")},,,,function(e,t,r){"use strict";var n;try{var o=require;n=o("esprima")}catch(e){if(typeof window!=="undefined")n=window.esprima}var i=r(945);function resolveJavascriptFunction(e){if(e===null)return false;try{var t="("+e+")",r=n.parse(t,{range:true});if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(e){return false}}function constructJavascriptFunction(e){var t="("+e+")",r=n.parse(t,{range:true}),o=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}r.body[0].expression.params.forEach(function(e){o.push(e.name)});i=r.body[0].expression.body.range;if(r.body[0].expression.body.type==="BlockStatement"){return new Function(o,t.slice(i[0]+1,i[1]-1))}return new Function(o,"return "+t.slice(i[0],i[1]))}function representJavascriptFunction(e){return e.toString()}function isFunction(e){return Object.prototype.toString.call(e)==="[object Function]"}e.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},,function(e,t,r){"use strict";var n=r(945);var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(o.exec(e)!==null)return true;if(i.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,s,c,a,u,l=0,f=null,p,d,h;t=o.exec(e);if(t===null)t=i.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;s=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,s))}c=+t[4];a=+t[5];u=+t[6];if(t[7]){l=t[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(t[9]){p=+t[10];d=+(t[11]||0);f=(p*60+d)*6e4;if(t[9]==="-")f=-f}h=new Date(Date.UTC(r,n,s,c,a,u,l));if(f)h.setTime(h.getTime()-f);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},function(e,t,r){"use strict";var n=r(945);var o=Object.prototype.hasOwnProperty;var i=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,s,c,a,u=e;for(r=0,n=u.length;r{if(s)return n(s);if(a)return n(null);l(e,t,(s,a)=>{if(s)return n(s);e=a.toDst;d(a.toCwd,r,(r,s)=>{if(r)return n(r);const a=o.dirname(t);m(a,(r,o)=>{if(r)return n(r);if(o)return i.symlink(e,t,s,n);c(a,r=>{if(r)return n(r);i.symlink(e,t,s,n)})})})})})}function createSymlinkSync(e,t,r){const n=i.existsSync(t);if(n)return undefined;const s=f(e,t);e=s.toDst;r=h(s.toCwd,r);const c=o.dirname(t);const u=i.existsSync(c);if(u)return i.symlinkSync(e,t,r);a(c);return i.symlinkSync(e,t,r)}e.exports={createSymlink:n(createSymlink),createSymlinkSync:createSymlinkSync}},,,,,,function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=o(r(747));const s=o(r(470));const c=o(r(761));const a=r(870);const u=r(835);const l=r(176);const f=r(630);const p=r(452);const d=r(401);class DownloadHttpClient{constructor(){this.downloadHttpManager=new p.HttpManager(d.getDownloadFileConcurrency(),"@actions/artifact-download");this.statusReporter=new l.StatusReporter(1e3)}listArtifacts(){return n(this,void 0,void 0,function*(){const e=a.getArtifactUrl();const t=this.downloadHttpManager.getClient(0);const r=a.getDownloadHeaders("application/json");const n=yield t.get(e,r);const o=yield n.readBody();if(a.isSuccessStatusCode(n.message.statusCode)&&o){return JSON.parse(o)}a.displayHttpDiagnostics(n);throw new Error(`Unable to list artifacts for the run. Resource Url ${e}`)})}getContainerItems(e,t){return n(this,void 0,void 0,function*(){const r=new u.URL(t);r.searchParams.append("itemPath",e);const n=this.downloadHttpManager.getClient(0);const o=a.getDownloadHeaders("application/json");const i=yield n.get(r.toString(),o);const s=yield i.readBody();if(a.isSuccessStatusCode(i.message.statusCode)&&s){return JSON.parse(s)}a.displayHttpDiagnostics(i);throw new Error(`Unable to get ContainersItems from ${r}`)})}downloadSingleArtifact(e){return n(this,void 0,void 0,function*(){const t=d.getDownloadFileConcurrency();s.debug(`Download file concurrency is set to ${t}`);const r=[...new Array(t).keys()];let o=0;let i=0;s.info(`Total number of files that will be downloaded: ${e.length}`);this.statusReporter.setTotalNumberOfFilesToProcess(e.length);this.statusReporter.start();yield Promise.all(r.map(t=>n(this,void 0,void 0,function*(){while(o{throw new Error(`Unable to download the artifact: ${e}`)}).finally(()=>{this.statusReporter.stop();this.downloadHttpManager.disposeAndReplaceAllClients()})})}downloadIndividualFile(e,t,r){return n(this,void 0,void 0,function*(){let o=0;const c=d.getRetryLimit();const u=i.createWriteStream(r);const l=a.getDownloadHeaders("application/json",true,true);const f=()=>n(this,void 0,void 0,function*(){const r=this.downloadHttpManager.getClient(e);return yield r.get(t,l)});const p=e=>{return"content-encoding"in e&&e["content-encoding"]==="gzip"};const h=r=>n(this,void 0,void 0,function*(){o++;if(o>c){return Promise.reject(new Error(`Retry limit has been reached. Unable to download ${t}`))}else{this.downloadHttpManager.disposeAndReplaceClient(e);if(r){s.info(`Backoff due to too many requests, retry #${o}. Waiting for ${r} milliseconds before continuing the download`);yield new Promise(e=>setTimeout(e,r))}else{const e=a.getExponentialRetryTimeInMilliseconds(o);s.info(`Exponential backoff for retry #${o}. Waiting for ${e} milliseconds before continuing the download`);yield new Promise(t=>setTimeout(t,e))}s.info(`Finished backoff for retry #${o}, continuing with download`)}});while(o<=c){let e;try{e=yield f()}catch(e){s.info("An error occurred while attempting to download a file");console.log(e);yield h();continue}if(a.isSuccessStatusCode(e.message.statusCode)){return this.pipeResponseToFile(e,u,p(e.message.headers))}else if(a.isRetryableStatusCode(e.message.statusCode)){s.info(`A ${e.message.statusCode} response code has been received while attempting to download an artifact`);a.isThrottledStatusCode(e.message.statusCode)?yield h(a.tryGetRetryAfterValueTimeInMilliseconds(e.message.headers)):yield h()}else{a.displayHttpDiagnostics(e);return Promise.reject(new Error(`Unexpected http ${e.message.statusCode} during download for ${t}`))}}})}pipeResponseToFile(e,t,r){return n(this,void 0,void 0,function*(){yield new Promise((n,o)=>{if(r){const r=c.createGunzip();e.message.pipe(r).pipe(t).on("close",()=>{n()}).on("error",e=>{s.error(`An error has been encountered while decompressing and writing a downloaded file to ${t.path}`);o(e)})}else{e.message.pipe(t).on("close",()=>{n()}).on("error",e=>{s.error(`An error has been encountered while writing a downloaded file to ${t.path}`);o(e)})}});return})}}t.DownloadHttpClient=DownloadHttpClient},function(e,t,r){t.alphasort=alphasort;t.alphasorti=alphasorti;t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=r(622);var o=r(571);var i=r(681);var s=o.Minimatch;function alphasorti(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function alphasort(e,t){return e.localeCompare(t)}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new s(r,{dot:true})}return{matcher:new s(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var o=process.cwd();if(!ownProp(r,"cwd"))e.cwd=o;else{e.cwd=n.resolve(r.cwd);e.changedCwd=e.cwd!==o}e.root=r.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=i(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;e.minimatch=new s(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var n=0,o=e.matches.length;n"}t.getUserAgent=getUserAgent},,,,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 o=r[0].split("/").pop();var i=r[1];return o==="env"?i:o+(i?" "+i:"")}},,,function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(598);const i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>{return typeof o[e]==="function"});Object.keys(o).forEach(e=>{if(e==="promises"){return}t[e]=o[e]});i.forEach(e=>{t[e]=n(o[e])});t.exists=function(e,t){if(typeof t==="function"){return o.exists(e,t)}return new Promise(t=>{return o.exists(e,t)})};t.read=function(e,t,r,n,i,s){if(typeof s==="function"){return o.read(e,t,r,n,i,s)}return new Promise((s,c)=>{o.read(e,t,r,n,i,(e,t,r)=>{if(e)return c(e);s({bytesRead:t,buffer:r})})})};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return o.write(e,t,...r)}return new Promise((n,i)=>{o.write(e,t,...r,(e,t,r)=>{if(e)return i(e);n({bytesWritten:t,buffer:r})})})};if(typeof o.writev==="function"){t.writev=function(e,t,...r){if(typeof r[r.length-1]==="function"){return o.writev(e,t,...r)}return new Promise((n,i)=>{o.writev(e,t,...r,(e,t,r)=>{if(e)return i(e);n({bytesWritten:t,buffers:r})})})}}if(typeof o.realpath.native==="function"){t.realpath.native=n(o.realpath.native)}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const o=r(470);const i=r(747);const s=r(539);const c=r(336);const a=r(401);function getExponentialRetryTimeInMilliseconds(e){if(e<0){throw new Error("RetryCount should not be negative")}else if(e===0){return a.getInitialRetryIntervalInMilliseconds()}const t=a.getInitialRetryIntervalInMilliseconds()*a.getRetryMultiplier()*e;const r=t*a.getRetryMultiplier();return Math.random()*(r-t)+t}t.getExponentialRetryTimeInMilliseconds=getExponentialRetryTimeInMilliseconds;function parseEnvNumber(e){const t=Number(process.env[e]);if(Number.isNaN(t)||t<0){return undefined}return t}t.parseEnvNumber=parseEnvNumber;function getApiVersion(){return"6.0-preview"}t.getApiVersion=getApiVersion;function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isForbiddenStatusCode(e){if(!e){return false}return e===s.HttpCodes.Forbidden}t.isForbiddenStatusCode=isForbiddenStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[s.HttpCodes.BadGateway,s.HttpCodes.ServiceUnavailable,s.HttpCodes.GatewayTimeout,s.HttpCodes.TooManyRequests,413];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function isThrottledStatusCode(e){if(!e){return false}return e===s.HttpCodes.TooManyRequests}t.isThrottledStatusCode=isThrottledStatusCode;function tryGetRetryAfterValueTimeInMilliseconds(e){if(e["retry-after"]){const t=Number(e["retry-after"]);if(!isNaN(t)){o.info(`Retry-After header is present with a value of ${t}`);return t*1e3}o.info(`Returned retry-after header value: ${t} is non-numeric and cannot be used`);return undefined}o.info(`No retry-after header was found. Dumping all headers for diagnostic purposes`);console.log(e);return undefined}t.tryGetRetryAfterValueTimeInMilliseconds=tryGetRetryAfterValueTimeInMilliseconds;function getContentRange(e,t,r){return`bytes ${e}-${t}/${r}`}t.getContentRange=getContentRange;function getDownloadHeaders(e,t,r){const n={};if(e){n["Content-Type"]=e}if(t){n["Connection"]="Keep-Alive";n["Keep-Alive"]="10"}if(r){n["Accept-Encoding"]="gzip";n["Accept"]=`application/octet-stream;api-version=${getApiVersion()}`}else{n["Accept"]=`application/json;api-version=${getApiVersion()}`}return n}t.getDownloadHeaders=getDownloadHeaders;function getUploadHeaders(e,t,r,n,o,i){const s={};s["Accept"]=`application/json;api-version=${getApiVersion()}`;if(e){s["Content-Type"]=e}if(t){s["Connection"]="Keep-Alive";s["Keep-Alive"]="10"}if(r){s["Content-Encoding"]="gzip";s["x-tfs-filelength"]=n}if(o){s["Content-Length"]=o}if(i){s["Content-Range"]=i}return s}t.getUploadHeaders=getUploadHeaders;function createHttpClient(e){return new s.HttpClient(e,[new c.BearerCredentialHandler(a.getRuntimeToken())])}t.createHttpClient=createHttpClient;function getArtifactUrl(){const e=`${a.getRuntimeUrl()}_apis/pipelines/workflows/${a.getWorkFlowRunId()}/artifacts?api-version=${getApiVersion()}`;o.debug(`Artifact Url: ${e}`);return e}t.getArtifactUrl=getArtifactUrl;function displayHttpDiagnostics(e){o.info(`##### Begin Diagnostic HTTP information #####\nStatus Code: ${e.message.statusCode}\nStatus Message: ${e.message.statusMessage}\nHeader Information: ${JSON.stringify(e.message.headers,undefined,2)}\n###### End Diagnostic HTTP information ######`)}t.displayHttpDiagnostics=displayHttpDiagnostics;const u=['"',":","<",">","|","*","?"];const l=[...u,"\\","/"];function checkArtifactName(e){if(!e){throw new Error(`Artifact name: ${e}, is incorrectly provided`)}for(const t of l){if(e.includes(t)){throw new Error(`Artifact name is not valid: ${e}. Contains character: "${t}". Invalid artifact name characters include: ${l.toString()}.`)}}}t.checkArtifactName=checkArtifactName;function checkArtifactFilePath(e){if(!e){throw new Error(`Artifact path: ${e}, is incorrectly provided`)}for(const t of u){if(e.includes(t)){throw new Error(`Artifact path is not valid: ${e}. Contains character: "${t}". Invalid characters include: ${u.toString()}.`)}}}t.checkArtifactFilePath=checkArtifactFilePath;function createDirectoriesForArtifact(e){return n(this,void 0,void 0,function*(){for(const t of e){yield i.promises.mkdir(t,{recursive:true})}})}t.createDirectoriesForArtifact=createDirectoriesForArtifact;function createEmptyFilesForArtifact(e){return n(this,void 0,void 0,function*(){for(const t of e){yield(yield i.promises.open(t,"w")).close()}})}t.createEmptyFilesForArtifact=createEmptyFilesForArtifact},,,,,function(e,t,r){const{promisify:n}=r(669);const o=r(402);e.exports.fileSync=o.fileSync;const i=n((e,t)=>o.file(e,(e,r,o,i)=>e?t(e):t(undefined,{path:r,fd:o,cleanup:n(i)})));e.exports.file=(async e=>i(e));e.exports.withFile=async function withFile(t,r){const{path:n,fd:o,cleanup:i}=await e.exports.file(r);try{return await t({path:n,fd:o})}finally{await i()}};e.exports.dirSync=o.dirSync;const s=n((e,t)=>o.dir(e,(e,r,o)=>e?t(e):t(undefined,{path:r,cleanup:n(o)})));e.exports.dir=(async e=>s(e));e.exports.withDir=async function withDir(t,r){const{path:n,cleanup:o}=await e.exports.dir(r);try{return await t({path:n})}finally{await o()}};e.exports.tmpNameSync=o.tmpNameSync;e.exports.tmpName=n(o.tmpName);e.exports.tmpdir=o.tmpdir;e.exports.setGracefulCleanup=o.setGracefulCleanup},,,,,,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,o){if(t==="exit"){const t=verifyENOENT(o,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}},,,,,,,function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=o(r(747));const s=o(r(470));const c=o(r(875));const a=o(r(794));const u=r(870);const l=r(401);const f=r(669);const p=r(835);const d=r(630);const h=r(176);const m=r(452);const g=r(647);const w=f.promisify(i.stat);class UploadHttpClient{constructor(){this.uploadHttpManager=new m.HttpManager(l.getUploadFileConcurrency(),"@actions/artifact-upload");this.statusReporter=new h.StatusReporter(1e4)}createArtifactInFileContainer(e){return n(this,void 0,void 0,function*(){const t={Type:"actions_storage",Name:e};const r=JSON.stringify(t,null,2);const n=u.getArtifactUrl();const o=this.uploadHttpManager.getClient(0);const i=u.getUploadHeaders("application/json",false);const s=yield o.post(n,r,i);const c=yield s.readBody();if(u.isSuccessStatusCode(s.message.statusCode)&&c){return JSON.parse(c)}else if(u.isForbiddenStatusCode(s.message.statusCode)){throw new Error(`Artifact storage quota has been hit. Unable to upload any new artifacts`)}else{u.displayHttpDiagnostics(s);throw new Error(`Unable to create a container for the artifact ${e} at ${n}`)}})}uploadArtifactToFileContainer(e,t,r){return n(this,void 0,void 0,function*(){const o=l.getUploadFileConcurrency();const i=l.getUploadChunkSize();s.debug(`File Concurrency: ${o}, and Chunk Size: ${i}`);const c=[];let a=true;if(r){if(r.continueOnError===false){a=false}}for(const r of t){const t=new p.URL(e);t.searchParams.append("itemPath",r.uploadFilePath);c.push({file:r.absoluteFilePath,resourceUrl:t.toString(),maxChunkSize:i,continueOnError:a})}const u=[...new Array(o).keys()];const f=[];let h=0;let m=0;let g=0;let w=0;let y=false;this.statusReporter.setTotalNumberOfFilesToProcess(t.length);this.statusReporter.start();yield Promise.all(u.map(e=>n(this,void 0,void 0,function*(){while(hi.createReadStream(t.file));f=false;l=r}else{c=(()=>{const e=new a.PassThrough;e.end(n);return e});l=n.byteLength}const p=yield this.uploadChunk(e,t.resourceUrl,c,0,l-1,l,f,r);if(!p){o=false;u+=l;s.warning(`Aborting upload for ${t.file} due to failure`)}return{isSuccess:o,successfulUploadSize:l-u,totalSize:r}}else{const a=yield c.file();l=yield g.createGZipFileOnDisk(t.file,a.path);let p=a.path;if(r104857600){this.statusReporter.updateLargeFileStatus(t.file,n,l)}const a=n;const h=n+c-1;n+=t.maxChunkSize;if(d){u+=c;continue}const m=yield this.uploadChunk(e,t.resourceUrl,()=>i.createReadStream(p,{start:a,end:h,autoClose:false}),a,h,l,f,r);if(!m){o=false;u+=c;s.warning(`Aborting upload for ${t.file} due to failure`);d=true}}yield a.cleanup();return{isSuccess:o,successfulUploadSize:l-u,totalSize:r}}})}uploadChunk(e,t,r,o,i,c,a,f){return n(this,void 0,void 0,function*(){const p=u.getUploadHeaders("application/octet-stream",true,a,f,i-o+1,u.getContentRange(o,i,c));const d=()=>n(this,void 0,void 0,function*(){const n=this.uploadHttpManager.getClient(e);return yield n.sendStream("PUT",t,r(),p)});let h=0;const m=l.getRetryLimit();const g=e=>{h++;if(h>m){if(e){u.displayHttpDiagnostics(e)}s.info(`Retry limit has been reached for chunk at offset ${o} to ${t}`);return true}return false};const w=t=>n(this,void 0,void 0,function*(){this.uploadHttpManager.disposeAndReplaceClient(e);if(t){s.info(`Backoff due to too many requests, retry #${h}. Waiting for ${t} milliseconds before continuing the upload`);yield new Promise(e=>setTimeout(e,t))}else{const e=u.getExponentialRetryTimeInMilliseconds(h);s.info(`Exponential backoff for retry #${h}. Waiting for ${e} milliseconds before continuing the upload at offset ${o}`);yield new Promise(t=>setTimeout(t,e))}s.info(`Finished backoff for retry #${h}, continuing with upload`);return});while(h<=m){let r;try{r=yield d()}catch(t){s.info(`An error has been caught http-client index ${e}, retrying the upload`);console.log(t);if(g()){return false}yield w();continue}yield r.readBody();if(u.isSuccessStatusCode(r.message.statusCode)){return true}else if(u.isRetryableStatusCode(r.message.statusCode)){s.info(`A ${r.message.statusCode} status code has been received, will attempt to retry the upload`);if(g(r)){return false}u.isThrottledStatusCode(r.message.statusCode)?yield w(u.tryGetRetryAfterValueTimeInMilliseconds(r.message.headers)):yield w()}else{s.error(`Unexpected response. Unable to upload chunk to ${t}`);u.displayHttpDiagnostics(r);return false}}return false})}patchArtifactSize(e,t){return n(this,void 0,void 0,function*(){const r=u.getUploadHeaders("application/json",false);const n=new p.URL(u.getArtifactUrl());n.searchParams.append("artifactName",t);const o={Size:e};const i=JSON.stringify(o,null,2);s.debug(`URL is ${n.toString()}`);const c=this.uploadHttpManager.getClient(0);const a=yield c.patch(n.toString(),i,r);const l=yield a.readBody();if(u.isSuccessStatusCode(a.message.statusCode)){s.debug(`Artifact ${t} has been successfully uploaded, total size in bytes: ${e}`)}else if(a.message.statusCode===404){throw new Error(`An Artifact with the name ${t} was not found`)}else{u.displayHttpDiagnostics(a);s.info(l);throw new Error(`Unable to finish uploading artifact ${t} to ${n}`)}})}}t.UploadHttpClient=UploadHttpClient},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(448);var o=r(189);var i=r(299);var s=r(482);const c="17.11.2";const a=n.Octokit.plugin(o.requestLog,s.restEndpointMethods,i.paginateRest).defaults({userAgent:`octokit-rest.js/${c}`});t.Octokit=a},,,,,,,function(e){e.exports=function(e,r){var n=[];for(var o=0;o{if(s.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e},{});const i=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(c.test(i)){o.url=i.replace(c,"/api/graphql")}return e(o).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new GraphqlError(o,{headers:t,data:e.data})}return e.data.data})}function withDefaults(e,t){const r=e.defaults(t);const o=(e,t)=>{return graphql(r,e,t)};return Object.assign(o,{defaults:withDefaults.bind(null,r),endpoint:n.request.endpoint})}const a=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${i} ${o.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=a;t.withCustomRequest=withCustomRequest},,function(e,t,r){"use strict";const n=r(676).fromCallback;const o=r(622);const i=r(598);const s=r(727);const c=r(322).pathExists;function createLink(e,t,r){function makeLink(e,t){i.link(e,t,e=>{if(e)return r(e);r(null)})}c(t,(n,a)=>{if(n)return r(n);if(a)return r(null);i.lstat(e,n=>{if(n){n.message=n.message.replace("lstat","ensureLink");return r(n)}const i=o.dirname(t);c(i,(n,o)=>{if(n)return r(n);if(o)return makeLink(e,t);s.mkdirs(i,n=>{if(n)return r(n);makeLink(e,t)})})})})}function createLinkSync(e,t){const r=i.existsSync(t);if(r)return undefined;try{i.lstatSync(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const n=o.dirname(t);const c=i.existsSync(n);if(c)return i.linkSync(e,t);s.mkdirsSync(n);return i.linkSync(e,t)}e.exports={createLink:n(createLink),createLinkSync:createLinkSync}},,,,,,,,,,function(e,t,r){"use strict";var n=r(43);e.exports=n.DEFAULT=new n({include:[r(723)],explicit:[r(386),r(629),r(839)]})},,,function(e,t,r){"use strict";var n;try{var o=require;n=o("buffer").Buffer}catch(e){}var i=r(945);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,o=e.length,i=s;for(r=0;r64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,o=e.replace(/[\r\n=]/g,""),i=o.length,c=s,a=0,u=[];for(t=0;t>16&255);u.push(a>>8&255);u.push(a&255)}a=a<<6|c.indexOf(o.charAt(t))}r=i%4*6;if(r===0){u.push(a>>16&255);u.push(a>>8&255);u.push(a&255)}else if(r===18){u.push(a>>10&255);u.push(a>>2&255)}else if(r===12){u.push(a>>4&255)}if(n){return n.from?n.from(u):new n(u)}return u}function representYamlBinary(e){var t="",r=0,n,o,i=e.length,c=s;for(n=0;n>18&63];t+=c[r>>12&63];t+=c[r>>6&63];t+=c[r&63]}r=(r<<8)+e[n]}o=i%3;if(o===0){t+=c[r>>18&63];t+=c[r>>12&63];t+=c[r>>6&63];t+=c[r&63]}else if(o===2){t+=c[r>>10&63];t+=c[r>>4&63];t+=c[r<<2&63];t+=c[64]}else if(o===1){t+=c[r>>2&63];t+=c[r<<4&63];t+=c[64];t+=c[64]}return t}function isBinary(e){return n&&n.isBuffer(e)}e.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},,,function(e,t,r){"use strict";const n=r(598);function utimesMillis(e,t,r,o){n.open(e,"r+",(e,i)=>{if(e)return o(e);n.futimes(i,t,r,e=>{n.close(i,t=>{if(o)o(e||t)})})})}function utimesMillisSync(e,t,r){const o=n.openSync(e,"r+");n.futimesSync(o,t,r);return n.closeSync(o)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},,,,,function(e,t,r){"use strict";var n=r(945);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(357);const o=r(87);const i=r(622);const s=r(972);const c=r(571);const a=r(327);const u=r(383);const l=process.platform==="win32";class Pattern{constructor(e,t){this.negate=false;let r;if(typeof e==="string"){r=e.trim()}else{t=t||[];n(t.length,`Parameter 'segments' must not empty`);const o=Pattern.getLiteral(t[0]);n(o&&s.hasAbsoluteRoot(o),`Parameter 'segments' first element must be a root path`);r=new u.Path(t).toString().trim();if(e){r=`!${r}`}}while(r.startsWith("!")){this.negate=!this.negate;r=r.substr(1).trim()}r=Pattern.fixupPattern(r);this.segments=new u.Path(r).segments;this.trailingSeparator=s.normalizeSeparators(r).endsWith(i.sep);r=s.safeTrimTrailingSeparator(r);let o=false;const a=this.segments.map(e=>Pattern.getLiteral(e)).filter(e=>!o&&!(o=e===""));this.searchPath=new u.Path(a).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(a[0]),l?"i":"");const f={dot:true,nobrace:true,nocase:l,nocomment:true,noext:true,nonegate:true};r=l?r.replace(/\\/g,"/"):r;this.minimatch=new c.Minimatch(r,f)}match(e){if(this.segments[this.segments.length-1]==="**"){e=s.normalizeSeparators(e);if(!e.endsWith(i.sep)){e=`${e}${i.sep}`}}else{e=s.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?a.MatchKind.Directory:a.MatchKind.All}return a.MatchKind.None}partialMatch(e){e=s.safeTrimTrailingSeparator(e);if(s.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(l?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(l?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e){n(e,"pattern cannot be empty");const t=new u.Path(e).segments.map(e=>Pattern.getLiteral(e));n(t.every((e,t)=>(e!=="."||t===0)&&e!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);n(!s.hasRoot(e)||t[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=s.normalizeSeparators(e);if(e==="."||e.startsWith(`.${i.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${i.sep}`)){const t=o.homedir();n(t,"Unable to determine HOME directory");n(s.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(l&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=s.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(l&&(e==="\\"||e.match(/^\\[^\\]/))){let t=s.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=s.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return s.normalizeSeparators(e)}static getLiteral(e){let t="";for(let r=0;r=0){if(n.length>1){return""}if(n){t+=n;r=o;continue}}}t+=n}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},,,,,,,function(e,t,r){"use strict";const n=r(622);const o=r(598);const i=r(322).pathExists;function symlinkPaths(e,t,r){if(n.isAbsolute(e)){return o.lstat(e,t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})})}else{const s=n.dirname(t);const c=n.join(s,e);return i(c,(t,i)=>{if(t)return r(t);if(i){return r(null,{toCwd:c,toDst:e})}else{return o.lstat(e,t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:n.relative(s,e)})})}})}}function symlinkPathsSync(e,t){let r;if(n.isAbsolute(e)){r=o.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const i=n.dirname(t);const s=n.join(i,e);r=o.existsSync(s);if(r){return{toCwd:s,toDst:e}}else{r=o.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(i,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},,,function(e,t,r){const n=r(470);const{ClientError:o}=r(79);const i=r(357);function getDefinitionFile(){return n.getInput("definition-file")}function getStartingProject(){return n.getInput("starting-project")}function getFlowType(){return n.getInput("flow-type")}function getLoggerLevel(){const e=n.getInput("logger-level");const t=e?e:"info";if(!["info","trace","debug"].includes(t)){throw new o(`invalid 'logger-level' input: ${t}`)}return t}function getAnnotationsPrefix(){const e=n.getInput("annotations-prefix");return e?`[${e}]`:""}function isPullRequestFlowType(){return getFlowType()==="pull-request"}function isFDFlowType(){return getFlowType()==="full-downstream"}function isSingleFlowType(){return getFlowType()==="single"}function isBranchFlowType(){return getFlowType()==="branch"}function eventFlowTypeToCliFlowType(e){i(e,"flow type is not defined for eventFlowTypeToCliFlowType argument");switch(e){case"pull-request":return"pr";case"single":return"single";case"full-downstream":return"fd";default:return undefined}}e.exports={getDefinitionFile:getDefinitionFile,getStartingProject:getStartingProject,getFlowType:getFlowType,getLoggerLevel:getLoggerLevel,getAnnotationsPrefix:getAnnotationsPrefix,isPullRequestFlowType:isPullRequestFlowType,isFDFlowType:isFDFlowType,isSingleFlowType:isSingleFlowType,isBranchFlowType:isBranchFlowType,eventFlowTypeToCliFlowType:eventFlowTypeToCliFlowType}},,,,,,,,,,,,function(e,t,r){"use strict";var n=r(556);var o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var i=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach(function(r){e[r].forEach(function(e){t[String(e)]=r})})}return t}function Type(e,t){t=t||{};Object.keys(t).forEach(function(t){if(o.indexOf(t)===-1){throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}});this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.defaultStyle=t["defaultStyle"]||null;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(i.indexOf(this.kind)===-1){throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},function(e){function treat(e){return`${e} -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B`}e.exports={treat:treat}},function(e,t,r){"use strict";var n=r(945);var o=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,r,n,i,s,c=e;s=new Array(c.length);for(t=0,r=c.length;te.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},,,,,function(e,t,r){"use strict";const n=r(622);const o=r(129);const i=r(20);const s=r(768);const c=r(512);const a=r(323);const u=r(145);const l=r(697);const f=r(260);const p=r(427);const d=r(168);const h=1e3*1e3*10;function handleArgs(e,t,r){let o;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;o={command:e,args:t,options:r,file:e,original:{cmd:e,args:t}}}else{o=i._parse(e,t,r)}r=Object.assign({maxBuffer:h,buffer:true,stripEof:true,preferLocal:true,localDir:o.options.cwd||process.cwd(),encoding:"utf8",reject:true,cleanup:true},o.options);r.stdio=d(r);if(r.preferLocal){r.env=c.env(Object.assign({},r,{cwd:r.localDir}))}if(r.detached){r.cleanup=false}if(process.platform==="win32"&&n.basename(o.command)==="cmd.exe"){o.args.unshift("/q")}return{cmd:o.command,args:o.args,opts:r,parsed:o}}function handleInput(e,t){if(t===null||t===undefined){return}if(a(t)){t.pipe(e.stdin)}else{e.stdin.end(t)}}function handleOutput(e,t){if(t&&e.stripEof){t=s(t)}return t}function handleShell(e,t,r){let n="/bin/sh";let o=["-c",t];r=Object.assign({},r);if(process.platform==="win32"){r.__winShell=true;n=process.env.comspec||"cmd.exe";o=["/s","/c",`"${t}"`];r.windowsVerbatimArguments=true}if(r.shell){n=r.shell;delete r.shell}return e(n,o,r)}function getStream(e,t,{encoding:r,buffer:n,maxBuffer:o}){if(!e[t]){return null}let i;if(!n){i=new Promise((r,n)=>{e[t].once("end",r).once("error",n)})}else if(r){i=u(e[t],{encoding:r,maxBuffer:o})}else{i=u.buffer(e[t],{maxBuffer:o})}return i.catch(e=>{e.stream=t;e.message=`${t} ${e.message}`;throw e})}function makeError(e,t){const{stdout:r,stderr:n}=e;let o=e.error;const{code:i,signal:s}=e;const{parsed:c,joinedCmd:a}=t;const u=t.timedOut||false;if(!o){let e="";if(Array.isArray(c.opts.stdio)){if(c.opts.stdio[2]!=="inherit"){e+=e.length>0?n:`\n${n}`}if(c.opts.stdio[1]!=="inherit"){e+=`\n${r}`}}else if(c.opts.stdio!=="inherit"){e=`\n${n}${r}`}o=new Error(`Command failed: ${a}${e}`);o.code=i<0?p(i):i}o.stdout=r;o.stderr=n;o.failed=true;o.signal=s||null;o.cmd=a;o.timedOut=u;return o}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:s,buffer:c,maxBuffer:a}=n.opts;const u=joinCmd(e,t);let p;try{p=o.spawn(n.cmd,n.args,n.opts)}catch(e){return Promise.reject(e)}let d;if(n.opts.cleanup){d=f(()=>{p.kill()})}let h=null;let m=false;const g=()=>{if(h){clearTimeout(h);h=null}if(d){d()}};if(n.opts.timeout>0){h=setTimeout(()=>{h=null;m=true;p.kill(n.opts.killSignal)},n.opts.timeout)}const w=new Promise(e=>{p.on("exit",(t,r)=>{g();e({code:t,signal:r})});p.on("error",t=>{g();e({error:t})});if(p.stdin){p.stdin.on("error",t=>{g();e({error:t})})}});function destroy(){if(p.stdout){p.stdout.destroy()}if(p.stderr){p.stderr.destroy()}}const y=()=>l(Promise.all([w,getStream(p,"stdout",{encoding:s,buffer:c,maxBuffer:a}),getStream(p,"stderr",{encoding:s,buffer:c,maxBuffer:a})]).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:u,parsed:n,timedOut:m});e.killed=e.killed||p.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:u,timedOut:false}}),destroy);i._enoent.hookChildProcess(p,n.parsed);handleInput(p,n.opts.input);p.then=((e,t)=>y().then(e,t));p.catch=(e=>y().catch(e));return p});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 i=joinCmd(e,t);if(a(n.opts.input)){throw new TypeError("The `input` option cannot be a stream in sync mode")}const s=o.spawnSync(n.cmd,n.args,n.opts);s.code=s.status;if(s.error||s.status!==0||s.signal!==null){const e=makeError(s,{joinedCmd:i,parsed:n});if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,s.stdout),stderr:handleOutput(n.opts,s.stderr),code:0,failed:false,signal:null,cmd:i,timedOut:false}});e.exports.shellSync=((t,r)=>handleShell(e.exports.sync,t,r))},,,,function(e,t,r){"use strict";e.exports={moveSync:r(95)}},,,,,,,function(e,t,r){"use strict";const{PassThrough:n}=r(794);e.exports=(e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:r}=e;const o=r==="buffer";let i=false;if(t){i=!(r||o)}else{r=r||"utf8"}if(o){r=null}let s=0;const c=[];const a=new n({objectMode:i});if(r){a.setEncoding(r)}a.on("data",e=>{c.push(e);if(i){s=c.length}else{s+=e.length}});a.getBufferedValue=(()=>{if(t){return c}return o?Buffer.concat(c,s):c.join("")});a.getBufferedLength=(()=>s);return a})},,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(357);const o=r(622);const i=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(i&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=o.dirname(e);if(i&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){n(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);n(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(i){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();n(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();n(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}n(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||i&&e.endsWith("\\")){}else{e+=o.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){n(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(i){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){n(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(i){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(i){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(o.sep)){return e}if(e===o.sep){return e}if(i&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},,,function(e,t,r){"use strict";const n=r(598);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);n.lstat(e,(e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file";r(null,t)})}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},,,,function(e,t,r){const n=r(669);const o=r(765);class ClientError extends Error{}class TimeoutError extends Error{}function log(e,t){if(o.env.NODE_ENV!=="test"){const r=t.map(e=>typeof e==="object"?inspect(e):e);if(e){console.log.apply(console,[e,...r])}else{console.log.apply(console,r)}}}const i={level:"info",trace:(...e)=>{if(i.level==="trace"){log("[TRACE]",e)}},debug:(...e)=>{if(i.level==="trace"||i.level==="debug"){log("DEBUG",e)}},emptyLine:()=>log("",[]),info:(...e)=>log("[INFO] ",e),warn:(...e)=>log("[WARN] ",e),error:(...e)=>{if(e.length===1){if(e[0]instanceof Error){if(i.level==="trace"||i.level==="debug"){log(null,[e[0].stack||e[0]])}else{log("[ERROR] ",[e[0].message||e[0]])}}}else{log("[ERROR] ",e)}}};function inspect(e){return n.inspect(e,false,null,true)}e.exports={ClientError:ClientError,TimeoutError:TimeoutError,logger:i}},,function(e,t,r){const{getDefinitionFile:n,getStartingProject:o}=r(933);function getInputs(){return{definitionFile:n(),startingProject:o()}}async function createCommonConfig(e,t,r){async function parseGitHub(e,t){return{serverUrl:getServerUrl(t["GITHUB_SERVER_URL"]),serverUrlWithToken:getServerUrl(t["GITHUB_SERVER_URL"],t["GITHUB_TOKEN"]),action:t["GITHUB_ACTION"],sourceGroup:e.sourceGroup,author:e.author,actor:t["GITHUB_ACTOR"],sourceBranch:t["GITHUB_HEAD_REF"]||(t["GITHUB_REF"]?t["GITHUB_REF"].split("refs/heads/").pop():undefined),targetBranch:t["GITHUB_BASE_REF"]||(t["GITHUB_REF"]?t["GITHUB_REF"].split("refs/heads/").pop():undefined),jobId:t["GITHUB_JOB"],sourceRepository:e.sourceRepository,repository:t["GITHUB_REPOSITORY"],group:t["GITHUB_REPOSITORY"].split("/")[0],project:t["GITHUB_REPOSITORY"].split("/")[1],groupProject:t["GITHUB_REPOSITORY"],workflowName:t["GITHUB_WORKFLOW"],ref:t["GITHUB_REF"],inputs:getInputs()}}return{github:await parseGitHub(e,r),rootFolder:t===undefined?r["GITHUB_WORKSPACE"]:t}}function getServerUrl(e,t=undefined){const r=e?e.replace(/\/$/,""):undefined;if(r&&t){return r.replace("://",`://${t}@`)}else{return r}}e.exports={createCommonConfig:createCommonConfig,getInputs:getInputs}},,,,,function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const c=r(304);const a=i(r(686));function exec(e,t,r){return s(this,void 0,void 0,function*(){const n=a.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const o=n[0];t=n.slice(1).concat(t||[]);const i=new a.ToolRunner(o,t,r);return i.exec()})}t.exec=exec;function getExecOutput(e,t,r){var n,o;return s(this,void 0,void 0,function*(){let i="";let s="";const a=new c.StringDecoder("utf8");const u=new c.StringDecoder("utf8");const l=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const f=(o=r===null||r===void 0?void 0:r.listeners)===null||o===void 0?void 0:o.stderr;const p=e=>{s+=u.write(e);if(f){f(e)}};const d=e=>{i+=a.write(e);if(l){l(e)}};const h=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:d,stderr:p});const m=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:h}));i+=a.end();s+=u.end();return{exitCode:m,stdout:i,stderr:s}})}t.getExecOutput=getExecOutput},function(e,t,r){const{logger:n}=r(79);const{execute:o}=r(235);r(63).config();async function execute(e,t){n.info("Treating export command since it's not possible to run it from the runner itself");const r=getVariable(t);const o=await executeExpression(e,getExpression(t));n.info(`The variable ${r} has been stored with '${o}' value`);process.env[r]=o}async function executeExpression(e,t){const r=t.match(/`(.*)`/)?t.match(/`(.*)`/)[1]:undefined;if(r){n.info(`Executing ${r} from export expression.`);let t="";let i="";const s={listeners:{stdout:e=>{t=t.concat(e.toString())},stderr:e=>{i=i.concat(e.toString())}}};await o(e,r,s);return t}return t?t.replace(/['"]+/g,""):t}function getVariable(e){return getCommandArray(e)[1]}function getExpression(e){return getCommandArray(e)[2]}function getCommandArray(e){const t=e.match(/^export (\w+)=(.*)/);if(t.length!==3){throw new Error(`The export command ${e} is not properly defined. It should be something like "export VARIBLE=expression". Please fix it an try again.`)}return t}e.exports={execute:execute}},function(e,t,r){"use strict";var n=r(945);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},function(e){function treat(e){return e}e.exports={treat:treat}}]); \ No newline at end of file diff --git a/package.json b/package.json index a69a5bf7..d77f566c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kie/build-chain-action", - "version": "2.3.25", + "version": "2.3.26", "description": "Library to execute commands based on github projects dependencies.", "main": "dist/build-chain-cli.js", "author": "Enrique Mingorance Cano ", diff --git a/src/lib/flows/common/build-chain-flow-helper.js b/src/lib/flows/common/build-chain-flow-helper.js index 2fd7aba8..c82d95c5 100644 --- a/src/lib/flows/common/build-chain-flow-helper.js +++ b/src/lib/flows/common/build-chain-flow-helper.js @@ -7,6 +7,7 @@ const { getForkedProject, getRepository } = require("../../git"); +const { getRemoteSha } = require("../../service/git-service"); const { logger } = require("../../common"); const { treatUrl } = require("@kie/build-chain-configuration-reader"); const { checkUrlExist } = require("../../util/http"); @@ -205,9 +206,19 @@ async function checkoutProjectPullRequestFlow( * @param {Object} dir the dir to check out */ async function checkoutNode(context, node, checkoutInfo, dir) { + const sourceHash = await getRemoteSha( + `${context.config.github.serverUrl}/${checkoutInfo.group}/${checkoutInfo.project}`, + checkoutInfo.branch + ); + if (checkoutInfo.merge) { + const targetHash = await getRemoteSha( + `${context.config.github.serverUrl}/${node.project}`, + checkoutInfo.targetBranch + ); + logger.info( - `[${node.project}] Merging ${context.config.github.serverUrl}/${node.project}:${checkoutInfo.targetBranch} into ${context.config.github.serverUrl}/${checkoutInfo.group}/${checkoutInfo.project}:${checkoutInfo.branch}` + `[${node.project}] Checking out ${context.config.github.serverUrl}/${node.project}:${checkoutInfo.targetBranch} ${targetHash} and merging ${context.config.github.serverUrl}/${checkoutInfo.group}/${checkoutInfo.project}:${checkoutInfo.branch} ${sourceHash} into '${dir}'` ); try { await clone( @@ -244,7 +255,7 @@ async function checkoutNode(context, node, checkoutInfo, dir) { } else { try { logger.info( - `[${node.project}] Checking out '${context.config.github.serverUrl}/${checkoutInfo.group}/${checkoutInfo.project}:${checkoutInfo.branch}' into '${dir}'` + `[${node.project}] Checking out '${context.config.github.serverUrl}/${checkoutInfo.group}/${checkoutInfo.project}:${checkoutInfo.branch}' ${sourceHash} into '${dir}'` ); await clone( `${context.config.github.serverUrlWithToken}/${checkoutInfo.group}/${checkoutInfo.project}`, diff --git a/src/lib/git.js b/src/lib/git.js index 03e6b9ba..b1160d35 100644 --- a/src/lib/git.js +++ b/src/lib/git.js @@ -174,6 +174,16 @@ async function sha(dir, branch) { return await git(dir, "show-ref", "-s", `refs/remotes/origin/${branch}`); } +/** + * It retrieves the hash from a remote repository and branch + * + * @param {string} repositoryUrl the repository URL + * @param {string} branch the branch to get the hash from + */ +async function remoteSha(repositoryUrl, branch) { + return await git(".", "ls-remote", repositoryUrl, branch); +} + async function rename(dir, branch) { return await git(dir, "branch", "--move", branch); } @@ -363,6 +373,7 @@ module.exports = { merge, head, sha, + remoteSha, rename, rebase, push, diff --git a/src/lib/service/git-service.js b/src/lib/service/git-service.js new file mode 100644 index 00000000..346d6dbb --- /dev/null +++ b/src/lib/service/git-service.js @@ -0,0 +1,24 @@ +const git = require("../git"); +const { logger } = require("../common"); + +/** + * It treats a git hash from a remote repositry. + * + * @param {string} repositoryUrl the repository URL + * @param {string} branch the branch to get the hash from + * @param {number} hashLength the length of hash to return back + */ +async function getRemoteSha(repositoryUrl, branch, hashLength = 7) { + try { + const remoteHashValue = await git.remoteSha(repositoryUrl, branch); + logger.debug(`Hash for ${repositoryUrl}:${branch} '${remoteHashValue}'`); + return `@${remoteHashValue.substring(0, hashLength)}`; + } catch (e) { + logger.warn( + `Error getting sha for ${repositoryUrl}:${branch}. It is only for logging purposes, no worries.` + ); + return undefined; + } +} + +module.exports = { getRemoteSha }; diff --git a/test/git.test.js b/test/git.test.js index 59ade71c..1ab3d152 100644 --- a/test/git.test.js +++ b/test/git.test.js @@ -150,3 +150,36 @@ describe("version", () => { ]); }); }); + +describe("remoteSha", () => { + test("ok", async () => { + // Arrange + const repositoryUrl = "https://repositoryUrl"; + const branch = "branchName"; + spawnMock.sequence.add( + spawnMock.simple( + 0, + "9a7f82f4b090a37a855aa582d2160951853a9141 refs/heads/main" + ) + ); + // Act + const result = await git.remoteSha(repositoryUrl, branch); + + // Assert + expect(spawnMock.calls.length).toBe(1); + const firstCall = spawnMock.calls[0]; + expect(firstCall.command).toBe("git"); + expect(firstCall.args).toStrictEqual([ + "-c", + "user.name=GitHub", + "-c", + "user.email=noreply@github.com", + "ls-remote", + repositoryUrl, + branch + ]); + expect(result).toBe( + "9a7f82f4b090a37a855aa582d2160951853a9141 refs/heads/main" + ); + }); +}); diff --git a/test/lib/flows/common/build-chain-flow-helper.test.js b/test/lib/flows/common/build-chain-flow-helper.test.js index 0e0c8492..b64c5187 100644 --- a/test/lib/flows/common/build-chain-flow-helper.test.js +++ b/test/lib/flows/common/build-chain-flow-helper.test.js @@ -27,6 +27,9 @@ const { checkUrlExist } = require("../../../../src/lib/util/http"); jest.mock("../../../../src/lib/util/http"); jest.mock("../../../../src/lib/common"); +const { getRemoteSha } = require("../../../../src/lib/service/git-service"); +jest.mock("../../../../src/lib/service/git-service"); + afterEach(() => { jest.clearAllMocks(); }); @@ -434,6 +437,24 @@ describe("checkoutDefinitionTree", () => { // Act const result = await checkoutDefinitionTree(context, nodeChain); // Assert + expect(getRemoteSha).toHaveBeenCalledTimes(4); + expect(getRemoteSha).toHaveBeenCalledWith( + "URL/sourceGroup/lienzo-core-forked", + "sBranch" + ); + expect(getRemoteSha).toHaveBeenCalledWith( + "URL/kiegroup/lienzo-core", + "tBranch" + ); + expect(getRemoteSha).toHaveBeenCalledWith( + "URL/sourceGroup/droolsjbpm-build-bootstrap-forked", + "sBranch" + ); + expect(getRemoteSha).toHaveBeenCalledWith( + "URL/kiegroup/droolsjbpm-build-bootstrap", + "tBranch" + ); + expect(mergeMock).toHaveBeenCalledTimes(2); expect(mergeMock).toHaveBeenCalledWith( "folder/kiegroup_lienzo_core", @@ -543,6 +564,20 @@ describe("checkoutDefinitionTree", () => { const result = await checkoutDefinitionTree(context, nodeChain); // Assert + expect(getRemoteSha).toHaveBeenCalledTimes(3); + expect(getRemoteSha).toHaveBeenCalledWith( + "URL/sourceGroup/lienzo-core-forked", + "sBranch" + ); + expect(getRemoteSha).toHaveBeenCalledWith( + "URL/kiegroup/lienzo-core", + "tBranch" + ); + expect(getRemoteSha).toHaveBeenCalledWith( + "URL/kiegroup/droolsjbpm-build-bootstrap", + "tBranch" + ); + expect(mergeMock).toHaveBeenCalledTimes(1); expect(mergeMock).toHaveBeenCalledWith( "folder/kiegroup_lienzo_core", diff --git a/test/lib/service/git-service.test.js b/test/lib/service/git-service.test.js new file mode 100644 index 00000000..c3c0fe17 --- /dev/null +++ b/test/lib/service/git-service.test.js @@ -0,0 +1,59 @@ +const { getRemoteSha } = require("../../../src/lib/service/git-service"); +const { remoteSha } = require("../../../src/lib/git"); +jest.mock("../../../src/lib/git"); +jest.mock("../../../src/lib/common"); + +afterEach(() => { + jest.clearAllMocks(); +}); + +describe("getRemoteSha", () => { + test("ok", async () => { + // Arrange + const repositoryUrl = "https://repositoryUrl"; + const branch = "branchName"; + remoteSha.mockResolvedValueOnce( + "9a7f82f4b090a37a855aa582d2160951853a9141 refs/heads/main" + ); + + // Act + const result = await getRemoteSha(repositoryUrl, branch); + + // Assert + expect(remoteSha).toHaveBeenCalledTimes(1); + expect(remoteSha).toHaveBeenCalledWith(repositoryUrl, branch); + expect(result).toBe("@9a7f82f"); + }); + + test("ok different length", async () => { + // Arrange + const repositoryUrl = "https://repositoryUrlX"; + const branch = "branchNameX"; + remoteSha.mockResolvedValueOnce( + "9a7f82f4b090a37a855aa582d2160951853a9141 refs/heads/main" + ); + + // Act + const result = await getRemoteSha(repositoryUrl, branch, 10); + + // Assert + expect(remoteSha).toHaveBeenCalledTimes(1); + expect(remoteSha).toHaveBeenCalledWith(repositoryUrl, branch); + expect(result).toBe("@9a7f82f4b0"); + }); + + test("not existing", async () => { + // Arrange + const repositoryUrl = "https://repositoryUrlY"; + const branch = "branchNameY"; + remoteSha.mockResolvedValueOnce(undefined); + + // Act + const result = await getRemoteSha(repositoryUrl, branch); + + // Assert + expect(remoteSha).toHaveBeenCalledTimes(1); + expect(remoteSha).toHaveBeenCalledWith(repositoryUrl, branch); + expect(result).toBe(undefined); + }); +});